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 Graph API object from Facebook


All information in the Facebook Graph API is stored as either an object, a property of an object, or as a connection between two or more objects. In this recipe, we're going be looking specifically at loading a single object from the Graph API.

This 'object' can represent practically any single element of Facebook—be it a User, an Event, or a Status message—with the properties of that object being determined by the object's type and our application's Extended Permissions.

Each Graph API object has its own ID, which is an identification number that is unique across the entire Facebook ecosystem, and each object can be referenced and retrieved from the Graph API based on an URL schema which revolves around the use of that ID.

There are two main steps to retrieving, and working with, an object from the Graph API:

  1. 1. The first step is to know the unique ID of the object to be loaded.

  2. 2. The next step is to anticipate the type of object that will be returned...