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

Loading large data sets with FQL multiquery

In situations where we want to load a large chunk of data at once, or we want to pull a lot of data from different tables, we can use what's known on Facebook as an FQL multiquery.

A multiquery is exactly what you might think—multiple FQL queries. They don't have to be related to each other, unlike subqueries, and they can each pull data from different FQL tables.

One of the original appeals for the FQL multiquery capability was the ability to perform what is now referred to as subqueries in FQL. Before this functionality was made available, there was presumably no other way for developers to perform complex subqueries. At present, the main attraction for using multiqueries is that they negate some of the overheads of making and managing multiple FQL requests, as all of the requests are packaged into a single request and single response.

In this recipe we're going to create a multiquery request to load information simultaneously about two tables—retrieving...