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, editing, and deleting Graph API objects

The Graph API is what we should use when we want to create, edit, or delete information on Facebook. Following the REST style approach, we create objects on Facebook by making POST requests to Graph API connections.

In addition to creating new objects, we can edit or delete existing objects, although not all of the objects in the Graph API are editable once they've initially been created. User information can be edited for example, but comments or status messages cannot be edited, only deleted.

In our later chapters, we'll cover the specifics of creating different Graph API object types, such as Photos. In this recipe, we'll examine the general approach needed to make requests that create, edit, or delete Graph API objects.

Getting ready

For this recipe, we have no specific user interface, but we can use the ApplicationBase class created in Chapter 11 for authentication and permissions management. To create and manage Graph API objects on the...