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
About the Author
About the Reviewers
Checkins and Facebook Places

Loading and displaying Photo Tags

Photos on Facebook can be 'tagged' by users—either the user that uploaded the original image, or by their friends (or any other user that has access to the Photo, such as a Group member).

A Tag is essentially a link between a portion of the Photo and another Facebook User, and exists as an object with x and y position properties, a name to display at that location, and usually—but not always—a Facebook id property.

In the Facebook website a Tag is represented by a small interactive area on a Photo which, when the user rolls over the area, displays their name as part of an overlay. In this recipe we're going to go partway in recreating this interface, loading the Tags information for the Photo and displaying the Tags as a permanent overlay on top of the Photo's image preview.

Getting ready

In this recipe, we're building on top of our previous recipe, Retrieving Photo and Album information from Facebook, which means that the MXML interface and ActionScript code...