- Load the Facebook SDK
- Login with Facebook
- Request specific permissions
- Revoke permissions
- Get data (list of friends, mutual friends, feed items, etc.)
- Post to the wall using your application’s custom UI or the Facebook dialogs
- Listen to Facebook events such as status change, etc
The Graph API provides access to a lot more data and actions, but you are essentially always using the same API with a different path into the graph.
There are other examples out there, each of them built around different use cases. This application is built with Backbone.js using a single page architecture, but the code can easily be reused in a different context.
Running the Application
Click here to run the application in your browser.
The source code is available in this GitHub repository.
Mobile App Version
In my next post, I will share a PhoneGap version of the same application (using the PhoneGap Facebook plugin).
This is a sample application, not a production application. Some trade-offs were made to keep the code generic, simple and readable.