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

Launching Facebook UI dialogs from ActionScript 3

In addition to the functionality provided to our application by the Graph API, there are also a few key dialog windows from Facebook that we can launch, which are described as thus:

Dialogs provide a simple, consistent interface to display dialogs to users. Dialogs do not require special user permissions because they require user interaction. Dialogs can be used in any type of application, whether on, a website, or a mobile application.


The key feature of these Facebook UI dialogs is that they don't require any Extended Permissions to launch and create status messages, because the pop ups are provided by Facebook, and they always require explicit user interaction before they perform any actions.

In this recipe, we're going to create an application which prompts the Feed Dialog, which can publish items to any of the user's feeds.

Getting ready

The Feed Dialog produces more or less the same output as posting a link or a status message...