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

Creating an Album with the Graph API


Every Photo object that is added to Facebook must be placed in an Album—there is no such thing as a Photo without an Album. If a Facebook application uploads an image without specifying a target Album, one is automatically created, following a naming convention comprised of the application name and 'Photos'; such as My First Application Photos:

Although individual users are able to use the Facebook website to manage their Photos and Albums, we're unable to edit or delete Albums using the Graph API once they've been created. So in order to upload our Photos to a custom-named Album, we need to create that Album separately, before attempting to upload our images.

In this recipe, we're going to create an interface which demonstrates how we could create a new Album using the Graph API. We won't be adding any Photos to this new Album, but are simply creating the Album itself.

Our final interface should look like this, which gives us both a list of the existing...