Flash Facebook Cookbook

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Written in a cookbook style, this book offers solutions using a recipe-based approach. Each recipe contains step-by-step instructions followed by an analysis of what was done in each task and other useful information. This Cookbook is targeted towards those with at least a basic understanding of the Flash Builder IDE and the Flex framework. No prior knowledge of the Facebook APIs is assumed or required. If you want to start building Flash Facebook apps quickly and effectively this is the book for you.

Author(s): James Ford
Publisher: Packt Publishing
Year: 2011

Language: English
Pages: 388
Tags: Библиотека;Компьютерная литература;

Cover......Page 1
Copyright......Page 3
Credits......Page 4
About the Author......Page 5
About the Reviewers......Page 7
www.PacktPub.com......Page 8
Table of Contents......Page 12
Preface......Page 16
Introduction......Page 22
Setting up a new application on Facebook......Page 23
Downloading the Facebook ActionScript 3 SDK......Page 27
Including the Facebook ActionScript 3 SDK in a Flash Builder project......Page 29
Including the Facebook ActionScript 3 SDK as a Flash Builder library project......Page 32
Preparing your Flash Player application's HTML template for Facebook integration......Page 36
Introduction......Page 46
Authentication with the Web SDK, for Flash Player applications......Page 49
Authentication with the Desktop SDK, for AIR applications......Page 57
Logging out of Facebook......Page 61
Retrieving information about the current session and active Facebook user......Page 63
Reacting to external session changes and JavaScript events......Page 66
Introduction......Page 72
Requesting permissions at login......Page 74
Checking for existing Extended Permissions......Page 79
Requesting additional Extended Permissions, following a failed API request......Page 86
Pre-emptively requesting additional Extended Permissions......Page 94
Introduction......Page 100
Building a 'Test console' for the Graph API......Page 101
Loading a Graph API object from Facebook......Page 106
Loading specific data fields for a Graph API object......Page 111
Loading Graph API connections......Page 115
Loading multiple Graph API objects, in a single request......Page 122
Limiting request lengths and paging results......Page 125
Filtering requests to a specific time period......Page 129
Loading a Facebook profile image......Page 130
Using the search capabilities of the Graph API......Page 134
Creating, editing, and deleting Graph API objects......Page 137
Introduction......Page 142
Loading data with FQL......Page 143
Using subqueries in FQL......Page 151
Using logical operators in FQL requests......Page 158
Loading large data sets with FQL multiquery......Page 163
Cross-comparing data sets to find overlapping results......Page 168
Sorting FQL results......Page 173
Limiting and paging FQL results......Page 175
Searching for text strings in FQL......Page 178
Introduction......Page 182
Loading a user's status updates......Page 183
Creating a status update with ActionScript......Page 195
Posting a link with ActionScript......Page 200
Deleting a status update with ActionScript......Page 203
Adding custom actions to Facebook posts......Page 206
Introduction......Page 212
Loading Comments for a Graph API object......Page 213
Adding a comment to a Graph API object......Page 219
Deleting a Comment......Page 222
Retrieving Likes for a Graph API object......Page 224
Adding a "Like" to a Graph API object......Page 226
Retrieving a 'Like' count for a specified URL......Page 229
Introduction......Page 236
Retrieving Photo and Album information from Facebook......Page 237
Loading and displaying Photo Tags......Page 246
Creating an Album with the Graph API......Page 255
Uploading Photos to Facebook......Page 259
Introduction......Page 270
Retrieving Facebook Group information......Page 271
Retrieving Group membership information......Page 278
Retrieving Facebook Events information......Page 283
Plotting Events on a Map......Page 288
Loading Event RSVP statuses......Page 291
Changing current user's RSVP status......Page 296
Creating an Event on the user's behalf......Page 300
Inviting friends to an Event......Page 306
Introduction......Page 312
Retrieving Checkin information for the current user and their friends......Page 314
Finding Facebook Places near a specific location......Page 321
Integrating with HTML5 geolocation capabilities, Maps and Facebook Places......Page 328
Creating new Checkins at an existing Facebook Place......Page 337
Introduction......Page 344
Launching Facebook UI dialogs from ActionScript 3......Page 345
Imitating the Facebook.com UI in Flex......Page 351
Displaying a Facebook-style loading indicator......Page 359
Creating the ApplicationBase class......Page 363
Index......Page 376