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 Facebook profile image


Many of the objects in Facebook—such as Users, Places, Events, Groups, Applications, Photos, and Videos—can have profile pictures associated with them. In the technical sense, these pictures are described as Facebook connections, but at the same time they're also different than other Facebook connections.

There are two ways to obtain the URL of a profile picture for an object—it can either come as a property of an object, obtained by specifying the correct fields when you load an object, or you can use a method in the ActionScript SDK to load different sized thumbnail versions of the profile image.

We need no additional permissions for loading profile images—as long as the current user can load the basic object, they can load the profile image for that object, as it is covered by a different set of permissions from those that govern access to the photo or video connections.

In this recipe, we're going to use the methods that come as part of the ActionScript...