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

Filtering requests to a specific time period

Time-based filtering is also a feature offered to us by the Graph API. Its usefulness is much the same as that of limiting the number of requests, only that instead of simply limiting the number of responses, it allows us to perform our filtering based on the time that the objects were created or updated.

The Facebook platform is much more geared towards time-oriented information, with features like the News and Home Feed connections, so this type of filtering makes a lot of sense for applications that would display this information.

Time-based results can be filtered to those results that are either before or up to a specific time. By combining both the until and since properties, we can achieve filtering for a date range.

How to do it...

For this example, we're going to load the status updates for the Facebook platform, using the URL value of facebook/statuses. To limit the results we would load to those from the last week, we would use the since...