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

Building a 'Test console' for the Graph API


For the recipes in this and the next chapter, there is less need for us to be developing a specific user interface for each recipe. Instead, we'd be better off developing a single, flexible interface which we can use to test a variety of different requests.

In this recipe, we're going to develop a simple user interface in the Flash Player (or AIR runtime, if you wish) that allows us to quickly see the results of a Graph API request URL and modify that URL without the need to continually re-build our project.

Once completed, our 'Test Console' should contain a sizable TextArea component, where we will output formatted JSON objects; a TextInput component, for specifying the Graph API object (or Graph API connection) URLs; a CheckBox component, for including additional Metadata (primarily to view Graph API connections); and a Button component, for triggering the request itself.

When complete, our 'Test Console' should look like this:

Getting ready

The...