Facebook FQL Multiquery Example
While working on our latest app for the iPad, Flickpad, I have been knee deep in Facebook FQL. FQL provides a powerful, albeit resource limited, way to access Facebook data. FQL is loosely inspired by SQL, pretty much just implementing the most basic syntax features. There are no joins allowed, tables must be queried on at least one of there indexed fields, IN is supported but NOT IN is not. Facebook provides one nugget though, fql.multiquery. Mutliquery allows you to batch up multiple queries and send them in one request. It also allows queries to reference the results of other queries in the batch. Documentation on multiquery is pretty limited so I figure I would put up a sample from Flickpad. This particular multiquery is pulling all albums, comments, likes, and users for a given set of photos (users is pulling users based on the comments query).




1 year ago