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

Limiting request lengths and paging results


We can limit the number of responses that we receive from a Graph object connection by simply using the limit option in our requests. By taking advantage of the limit and offset capabilities of the Graph API we can add paging to our data—requesting a large set of data in several smaller chunks.

In this recipe, we're going to implement paging for a connection request—reducing what would otherwise be a list of hundreds of images down to only ten at a time, with components onscreen that allow us to customize the number of results for each 'page' and navigate forward and backward through those pages.

Getting ready

The initial starting point for this recipe should be that of our earlier recipe, Building a Test Console for the Graph API. To this basic interface, we should add several components to test the pagination capabilities of our requests. These should be a NumericStepper component, increments_stp; two Button components, prev_btn and next_btn; and...