Facebook Developers
DocsToolsSupportNewsAppsLog In
  • Getting Started
  • Core Concepts
  • Advanced Topics
  • API Reference
  • SDK Reference
  • Topics
    • Facebook SDK for iOS
  • Concepts
    • Build, Distribute and Promote
  • Features
    • What's New in 3.0
  • Getting Started
    • Getting Started with the Facebook SDK for iOS
  • Tutorials
    • Facebook SDK for iOS Tutorial
    • 1 - Authenticate
    • 2 - Personalize
    • 3 - Show Friends
    • 4 - Show Nearby Places
    • 5 - Publish Open Graph Story
  • How Tos
    • Facebook Login
    • Publish to Feed
    • Run FQL Queries
    • Send Requests
    • Batch Requests
    • Caching
    • Fetch User Data
    • Add Search to Friend Selector
    • Share an App ID Across Apps
    • Link To Your Native App
    • Feed Dialog
    • Select Friends by Device
  • Reference
    • Facebook SDK for iOS Reference
  • Other Resources
    • Change Log 3.x
    • Downloads

Facebook SDK for iOS 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 a month ago
Facebook © 2012 · English (US)
AboutAdvertisingCareersPlatform PoliciesPrivacy Policy