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

Authentication with the Desktop SDK, for AIR applications


The technology that powers the authentication for the Facebook APIs in an AIR-based application is a little different to its equivalent Flash Player-based web application.

As we mentioned in the introduction, the Web version of the Facebook ActionScript 3 SDK relies on the underlying JavaScript SDK. The Desktop version however doesn't have the same luxury—everything that it has to do, such as launching pop-up windows or maintaining user sessions, must be done through ActionScript 3 and the enhanced capabilities of the AIR runtime alone. Fortunately for us however, this functionality has already been built into the Facebook ActionScript 3 SDK.

The methods that we use to work with the Facebook are much the same in the Desktop SDK as those of the web-based SDK, but there are a few important variations in the parameters you pass that means it's not just a case of swapping the root class of Facebook for FacebookDesktop.

In this recipe we...