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 Android
  • Concepts
    • Build, Distribute and Promote
  • Features
    • What's New in 3.0
    • Mobile App Install Ads
  • Getting Started
    • Getting Started with the Facebook SDK for Android
  • Tutorials
    • Facebook SDK for Android Tutorial
    • 1 - Authenticate with Facebook Login
    • 2 - Personalize
    • 3 - Show Friends
    • 4 - Show Nearby Places
    • 5 - Publish Open Graph Story
    • Upgrading from 2.0 to 3.0
    • Upgrading from 3.0.2.b to 3.0
    • Mobile App Install Ads
  • Games Tutorial
    • Android Games Tutorial
    • 1 - Authenticate
    • 2 - Personalize
    • 3 - Invites and Requests
    • 4 - Bragging and News Feed
    • 5 - Publish Open Graph Story
  • How Tos
    • Facebook Login Flow for Android
    • Send Requests
    • Handle Request App Links
    • Use the Feed Dialog
    • Fetch User Data
    • Link To Your Native App
    • Publish to Feed
    • Run FQL Queries
    • Use Batch Requests
    • Use the native Login Dialog
  • Reference
    • Facebook SDK for Android Reference
  • Other Resources
    • Android Change Log 3.x
    • Facebook SDK for Android Downloads

Facebook SDK for Android Tutorial

Documentation › Facebook SDK for Android Tutorial

This multipart tutorial walks you through integrating Facebook into an Android 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 Android development. Before you start, install the SDK, create your Facebook App and start a new project as described in Getting Started with the Facebook SDK for Android.

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

  • Authenticate: Implement Facebook Login, ask the user for the permissions your app needs, handle session changes and log out the user.
  • Personalize: Personalize the user's experience with their profile picture and name when they log in.
  • Show Friends: Display the user's friend list and let them select one or more friends.
  • Show Nearby Places: Display a list of nearby places and let the user tag their location.
  • 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 understanding of how to log a user into Facebook, personalize their experience and make an app social. Let's start the tutorial.

Updated about a month ago
Facebook © 2013 · English (US)
AboutAdvertisingCareersPlatform PoliciesPrivacy Policy