Flash Facebook Cookbook


Flash Facebook Cookbook
eBook: $29.99
Formats: PDF, PacktLib, ePub and Mobi formats
$20.99
save 30%!
Print + free eBook + free PacktLib access to the book: $79.98    Print cover: $49.99
$49.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Reviews
Support
Sample Chapters
  • Work with the key Graph API objects and their social connections, using the Facebook ActionScript 3 SDK.
  • Create new Checkins at Facebook Places and plot existing Checkins and Facebook Places on Flex mapping components.
  • Upload image files or generated images to Facebook.
  • Packed full of solutions using a recipe-based approach.

Book Details

Language : English
Paperback : 388 pages [ 235mm x 191mm ]
Release Date : August 2011
ISBN : 1849690723
ISBN 13 : 9781849690720
Author(s) : James Ford
Topics and Technologies : All Books, Web Development, Flash, Cookbooks

Table of Contents

Preface
Chapter 1: Getting Started with Flash and Facebook
Chapter 2: Authenticating with Facebook
Chapter 3: Working with Facebook Permissions
Chapter 4: Reading and Writing Data with the Graph API
Chapter 5: Loading Data with FQL
Chapter 6: Facebook News Feeds and Status Updates
Chapter 7: Comments and "Like this"
Chapter 8: Working with Photos, Albums, and Tags
Chapter 9: Working with Groups and Events
Chapter 10: Checkins and Facebook Places
Chapter 11: Bridging the Flash and Application Gap
Index
  • Chapter 1: Getting Started with Flash and Facebook
    • Introduction
    • Setting up a new application on Facebook
    • Downloading the Facebook ActionScript 3 SDK
    • Including the Facebook ActionScript 3 SDK in a Flash Builder project
    • Including the Facebook ActionScript 3 SDK as a Flash Builder library project
    • Preparing your Flash Player application's HTML template for Facebook integration
    • Chapter 2: Authenticating with Facebook
      • Introduction
      • Authentication with the Web SDK, for Flash Player applications
      • Authentication with the Desktop SDK, for AIR applications
      • Logging out of Facebook
      • Retrieving information about the current session and active Facebook user
      • Reacting to external session changes and JavaScript events
      • Chapter 3: Working with Facebook Permissions
        • Introduction
        • Requesting permissions at login
        • Checking for existing Extended Permissions
        • Requesting additional Extended Permissions, following a failed API request
        • Pre-emptively requesting additional Extended Permissions
        • Chapter 4: Reading and Writing Data with the Graph API
          • Introduction
          • Building a 'Test console' for the Graph API
          • Loading a Graph API object from Facebook
          • Loading specific data fields for a Graph API object
          • Loading Graph API connections
          • Loading multiple Graph API objects, in a single request
          • Limiting request lengths and paging results
          • Filtering requests to a specific time period
          • Loading a Facebook profile image
          • Using the search capabilities of the Graph API
          • Creating, editing, and deleting Graph API objects
          • Chapter 5: Loading Data with FQL
            • Introduction
            • Loading data with FQL
            • Using subqueries in FQL
            • Using logical operators in FQL requests
            • Loading large data sets with FQL multiquery
            • Cross-comparing data sets to find overlapping results
            • Sorting FQL results
            • Limiting and paging FQL results
            • Searching for text strings in FQL
            • Chapter 6: Facebook News Feeds and Status Updates
              • Introduction
              • Loading a user's status updates
              • Creating a status update with ActionScript
              • Posting a link with ActionScript
              • Deleting a status update with ActionScript
              • Adding custom actions to Facebook posts
              • Chapter 7: Comments and "Like this"
                • Introduction
                • Loading Comments for a Graph API object
                • Adding a Comment to a Graph API object
                • Deleting a Comment
                • Retrieving Likes for a Graph API object
                • Adding a "Like" to a Graph API object
                • Retrieving a "Like" count for a specified URL
                  • Chapter 9: Working with Groups and Events
                    • Introduction
                    • Retrieving Facebook Group information
                    • Retrieving Group membership information
                    • Retrieving Facebook Events information
                    • Plotting Events on a Map
                    • Loading Event RSVP statuses
                    • Changing current user's RSVP status
                    • Creating an Event on the user's behalf
                    • Inviting friends to an Event
                    • Chapter 10: Checkins and Facebook Places
                      • Introduction
                      • Retrieving Checkin information for the current user and their friends
                      • Finding Facebook Places near a specific location
                      • Integrating with HTML5 geolocation capabilities, Maps, and Facebook Places
                      • Creating new Checkins at an existing Facebook Place

                        James Ford

                        James Ford lives and works in the relatively sedate Midlands of England, and is constantly thankful that he doesn’t have to contend with public transport or large volumes of traffic on a regular basis. Occasionally being stuck behind a tractor for several miles is a small price to pay for that! Macromedia Flash 8 represented his first serious interaction with a programming language, an epiphany whereupon his BA in Design for Interactive Media became far more focused on the Programming side of things than the Art (although it turned out okay). He considers himself to be fortunate to have encountered the Flash Platform when he did, as during that time between first contact and today, the Flash Platform has evolved at just the right pace to enable him to keep up with the latest shiny new features. In addition to developing Facebook-integrated Flash Player applications, James has also developed a few AIR applications, built a couple of Apps for iOS and Android devices, helped develop a load of websites, and blogs about all of this on his website: http://www.psyked.co.uk/.

                        Submit Errata

                        Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

                        Sample chapters

                        You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                        Frequently bought together

                        Flash Facebook Cookbook +    Oracle Service Bus 11g Development Cookbook =
                        50% Off
                        the second eBook
                        Price for both: €36.65

                        Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                        What you will learn from this book

                        • Plot user Checkins on a map component, and publish new Checkins on behalf of a user.
                        • Authenticate with Facebook on behalf of a user.
                        • Manage and request additional data read or publishing permissions from Facebook.
                        • Use the search capabilities of the Graph API to retrieve specific information.
                        • Request specific information from Facebook using SQL-like FQL queries.
                        • Retrieve and create cross-links between different objects in the Graph API.
                        • Create new Events, invite users and retrieve and modify RSVP information for authenticated users.
                        • Integration with Facebook and AJAX sharing dialogs.

                        In Detail

                        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.

                        Approach

                        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.

                        Who this book is for

                        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. 

                        Code Download and Errata
                        Packt Anytime, Anywhere
                        Register Books
                        Print Upgrades
                        eBook Downloads
                        Video Support
                        Contact Us
                        Awards Voting Nominations Previous Winners
                        Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                        Resources
                        Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software