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
About the Author
About the Reviewers
Checkins and Facebook Places

Requesting additional Extended Permissions, following a failed API request

We've looked at requesting Extended Permissions from the user at the initial login stage, and seen how that works, but it's not infallible. Now we're going to look at actually requesting those permissions midway through our application.

There are two approaches we can take with regards to the management of permissions and requesting of additional ones. The first approach, which we'll explore in this recipe, is to try an API request, and if it fails, request the additional permissions we need for that request, before retrying the original API request. (The second approach we'll cover in the recipe Pre-emptively requesting additional Extended Permissions.)

In this recipe we're going to avoid requesting permissions during the initial login process, and instead request them midway through the application.

Getting ready

For this example, the starting point of our application should be that of our earlier recipe, Authentication...