Facebook SDK for iOS
Integrate with Facebook to help you build engaging social apps and get more installs.
v3.13. See Change Log or Upgrade Guide.
Get Started on iOS
Walkthrough the basics for iOS
SDK Reference Docs
Comprehensive Reference Docs

What's in the iOS SDK?

Share

Allow people using your app to publish from your app to Facebook. When people of Facebook engage with these posts they are directed to your app or your app's App Store page (if they don't have your app installed).

Login

Let people easily sign in to your app with their Facebook identity. If they have already signed in on the Facebook for iOS app, they don't have to reenter their username and password.

Ads

Reach the right people where they are most engaged, in News Feed. Drive installs with Mobile App Install Ads. Increase user engagement withMobile App Engagement Ads. And find the right audience to target with Custom Audiences for Mobile Apps.

App Events

App Events allow you to understand the actions taken by users within your app and to measure the effectiveness of your Mobile App Ads. They can also help you better understand the makeup of users engaging with your app.

Graph API

The Graph API is the primary way to get data in and out of Facebook's social graph. You can use it to query data, post new stories, upload photos and a variety of other tasks that an app might need to do.

Custom Stories

Open Graph lets apps tell Custom Stories on Facebook through a structured, strongly typed API that consists of actions and objects. For example: "read a book". You can create custom actions and objects that are relevant to your app.

Dialogs and UI Controls

The SDK offers a number of built-in UI components to speed up your integration process, like the Share Dialog, the Facebook Login button, and many more. It also integrates with iOS to help you build native in-app experiences.

App Center

People can browse the App Center in the Facebook iOS app to find new apps, from there they will be directed to download the app from the Apple App Store. Featuring your app in the App Center is a great way to drive growth.

Example Apps

Games: Friend Smash

This tutorial dives into Friend Smash, our games sample app, to show you how to use the Facebook SDK for iOS to add features such as scores, achievements and requests to your iOS game.

E-commerce: Swag Shop

Swag Shop is a sample application geared to developers of e-commerce apps. It implements some of the Facebook SDK features that commerce apps can benefit from.

Other sample apps

A list of all the samples apps for the Facebook SDK for iOS.

Other resources

Deep linking

Handle incoming links, coming to your app from the Facebook for iOS app, to direct people to a relevant part of your app.

Error handling

Build a robust and reliable app by making sure that it properly responds to errors.

FAQ and troubleshooting

A guide with answers to common questions and troubleshooting tips.
Was this document helpful?