Facebook Developers
DocsToolsSupportNewsApps
Log In
  • Social Plugins
  • Facebook Login
  • Open Graph
  • Facebook APIs
  • Games
  • Payments
  • App Center
  • Promote Your App
  • iOS
  • Android
  • JavaScript
  • PHP
  • More SDKs
  • Topics
    • Facebook SDK for iOS
  • Getting Started
    • Getting Started with the Facebook SDK for iOS
    • Build, Distribute and Promote
  • iOS SDK Tutorial
    • Facebook iOS SDK Tutorial
    • 1 - Authenticate Using Facebook Login
    • 2 - Personalize
    • 3 - Show Friends
    • 4 - Show Nearby Places
    • 5 - Publish Open Graph Story
  • Games Tutorial
    • iOS Games Tutorial
    • 1 - Authenticate
    • 2 - Personalize
    • 3 - Invites and Requests
    • 4 - Bragging and News Feed
    • 5 - Publish Open Graph Story
  • Upgrading SDKs Tutorials
    • Upgrading from 3.2 to 3.5
    • Upgrading from 3.1 to 3.2
    • Upgrading from 3.0 to 3.1
    • Upgrading from 2.0 to 3.1

Facebook iOS SDK Tutorial

Documentation › Facebook iOS SDK Tutorial

This multi-part tutorial walks you through building a Facebook integrated iOS app. You'll create a timeline app that lets people post about meals they ate.

This sample app is based on the Scrumptious sample app bundled with the SDK. You can use the completed sample as a reference or jump to a specific step to see how to implement a specific feature.


To complete the tutorial, you'll need a familiarity with Objective-C, Xcode and some common frameworks like CoreLocation. Before you start you should install the Facebook SDK for iOS, create your Facebook App, and start a new Xcode project as described in Getting Started with the iOS SDK.

Note: Use the following settings in your Xcode project options, so you can match this tutorial:


Once you've done that, work through the following steps of the tutorial:

  • Authenticate: Implement Login with Facebook, ask the user for the permissions your app needs, handle session changes, and log out the user.
  • Personalize: Personalize the experience for the user with their profile picture and name when they login to your app.
  • Show Friends: Display the user's friends and let them select one or more friends.
  • Show Nearby Places: Display a list of nearby places and let the user tag where they're currently located.
  • Publish an Open Graph Action: Publish activity from your app to timeline and news feed — and set up the back-end server for Open Graph objects.

By the end of this tutorial, you should have a working knowledge of how to authenticate, personalize and make any app social. Let's start the tutorial.

Updated about 4 months ago
Facebook © 2013 · English (US)
AboutAdvertisingCareersPlatform PoliciesPrivacy Policy