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

Creating a status update with ActionScript

Besides using the Graph API for reading data from Facebook, we can also use it to create or delete individual objects in the Facebook ecosystem.

When a user posts something on Facebook, through the traditional web-based interface, they have a selection of different update types. Status updates are just one of those objects—whether the items are labeled Status, Photo, Link, or Video—all of the items are actually of the type Post.

In this recipe, we're going to use ActionScript to create a status update for the current user, which will be posted on their Profile feed.

Getting ready

The starting point for this recipe should be that of our previous recipe—built on top of the ApplicationBase class, which manages extended permissions and is already set up to load a Graph API connection containing post objects. The URL that our application should be loading is the "me/feed" connection.

In addition to the existing List component, news_feed_list, add a new TextArea...