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

Using logical operators in FQL requests

With an FQL request you have the ability to use the core Boolean logical operators—AND, OR and != (not equal to). Combine these with subqueries and you've got a lot of power available to help you filter out results from your queries.

In this recipe we're going to use subqueries and logical operators to retrieve a list of Facebook user objects. We'll be using a nested subquery to get a list of other Facebook users that the current user is tagged in photos with. We're then going to use the OR operator to expand our search results, and include all of the current user's friends, so our overall query will return both friends and tagged users.

Once we have that list, we're going to flip the results and use the AND operator to exclude results, and only return a list of users that are both friends and tagged in photos alongside the current user.

Getting ready

For this recipe, we'll need the "user_photo_video_tags" and "user_photos" Extended Permissions granted...