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

Requesting permissions at login


The Facebook Graph API, which applications use to obtain access tokens for use in requests, uses the same method for obtaining new Extended Permissions as it does for logging in—both of these actions work with the same underlying methods in the ActionScript and JavaScript SDKs, and both launch authentication pop-up windows with content from the Facebook.com website.

Transforming a login dialog request to a login-plus-permissions dialog is as simple as listing the codenames of the required Extended Permissions in an additional parameter on the login method call, and that will trigger a change in the style of the login window accordingly.

When an application requests permissions the user can only accept or deny the permissions request wholesale—they can't be selective about it.

The ideal workflow for any Facebook API request is to make sure that it succeeds first time, as the most common point of failure (besides an outright programming error on our part) is a...