Facebook SDK Tutorial Summary

Authorization Flow




Download SDK

Configure project



Explained in great details in this link, I followed it closely




This is a less useful tutorial, but the good thing is the SDK came with source code for this tutorial, make it a good reference to the previous material


The source code is in SDK/samples folder


The scrum


Graph API:




A low-level HTTP-based API that allows developers to query data, post new stories… It is the latest method to succeed legacy REST API and other older APIs. It includes new functions such as posting achievements that were not available in the older APIs. The graph consists of “Nodes” and “Connections”.


Key Points:


  • Everything in the Open Graph has an ID.

    • This allows you to locate any item with /<id> path

  • Permissions

    • The default access permission allows us to access very basic information (Name…). In order to get more information, we need to get an “Access Token”

    • “One very important note on privacy that’s relevant to developers. Facebook offers a large number of controls to people about what data they would like to share with friends, but they can also control what they choose to share with apps. This means that even if you ask for a permission, there’s a chance you still won’t be able to see the data you’re asking for.”  只有朋友们同意share他们的event,才能在我们的app里面看到.

Query Data Within Application using Graph API with FQL


  1. Need to have the permission to read the data

  2. Follow the example here and write FQL queres

    1. https://developers.facebook.com/docs/howtos/run-fql-queries-ios-sdk/

  3. Graph API explorer (可以在网上直接测试 FQL)

    1. https://developers.facebook.com/tools/explorer?method=GET&path=1108998031%3Ffields%3Did%2Cname

  4. Tables documentation (key, value info)

    1. https://developers.facebook.com/docs/reference/fql/

This entry was posted in IPhone App Development. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s