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

Retrieving Photo and Album information from Facebook


In this recipe, we're going to build an interface which allows us to load the Album's information for a User or a User's friends, and then load the Photos within that Album, displaying the content as thumbnails in a Flex framework List component.

When completed, our application should look a little like this:

Getting ready

We're going to be loading information about the current user and displaying Photo and Album information from the user and their friends, so we will need to include authentication code which ensures that our application has the necessary user_photos and friend_photos Extended Permissions. To do that we can build our application on top of the ApplicationBase class detailed in the recipe Creating the ApplicationBase class from Chapter 11, Bridging the Flash and Application Gap and include the following function:

override protected function get requiredPermissions():Array {
return [ExtendedPermission.USER_PHOTOS,
ExtendedPermission...