Safari Developer Library


iOS Human Interface Guidelines


Social Media

People expect to have access to their favorite social media accounts regardless of their current context. iOS makes it easy to integrate social media interactions into your app in ways that people appreciate.

image: ../Art/social_media_sharing_2x.png

Consider giving users a convenient way to compose a post within your app. Users are likely to enable Share extensions that make it easy to post content from anywhere, but you can also use the system-provided compose view controller to present users with a view in which they can edit a post. Optionally, you can prepopulate the compose view with custom content before you present it to users for editing (after you present the view to users, only they can edit the content). To learn about the programming interfaces of the Social framework—including the SLComposeViewController class—see Social Framework Reference.

When possible, avoid asking users to sign into a social media account. The Social framework works with the Accounts framework to support a single sign-on model, so you can get authorization to access the user’s account without asking them to reauthenticate. If the user hasn’t already signed into an account, you can present UI that allows them to do so.