Book Image

Flash Facebook Cookbook

By : James Ford
Book Image

Flash Facebook Cookbook

By: James Ford

Overview of this book

Flash applications are popular and becoming increasingly social. With flash applications for facebook you can tap into a potential audience of half a billion existing users, their connections and affiliations, their uploaded images, posts, comments and more.The Flash Facebook Cookbook is packed with recipes for the Graph API and FQL, used for reading and writing data as well as interacting with Facebook anonymously or on behalf of an authorised Facebook User.The topics covered by the recipes in this Cookbook include working with News feeds, uploading Photos, searching for and plotting Places on a map and much more. The cookbook has recipes ranging from those that work without any authentication with Facebook to those that do, and act on behalf of a user. Packed with recipes that yield practical demonstrations of the Graph API functionality, the Flash Facebook Cookbook is an essential tool for Flash Platform developers.
Table of Contents (18 chapters)
Flash Facebook Cookbook
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
10
Checkins and Facebook Places

Loading a user's status updates


In this first recipe, we're going to load Status message updates from Facebook, using the Graph API object connection. There are several Graph API connections which can return Status updates, links, photos, or videos.

For a Facebook user, these connections are:

  • /PROFILE_ID/home

  • /PROFILE_ID/feed

  • /PROFILE_ID/posts

  • /PROFILE_ID/statuses

For a Facebook page or Facebook application, the connections are:

  • /PAGE_ID/feed

  • /PAGE_ID/posts

  • /PAGE_ID/statuses

And for a Facebook group, there is:

  • /GROUP_ID/feed

All of these connections return an array of Graph API post objects, which can be transformed into their equivalent ActionScript 3 value object class, FacebookPost.

Note

The developer documentation for the Graph API Post object is available from:

http://developers.facebook.com/docs/reference/api/post/

Getting ready

As with our earlier recipes, we'll need a starting point application, one that handles the initialization of the Facebook SDK, the authentication and required permissions...