Facebook Graph API Development with Flash
|Also available on:|
- Build your own interactive applications and games that integrate with Facebook
- Add social features to your AS3 projects without having to build a new social network from scratch
- Learn how to retrieve information from Facebook's database
- A hands-on guide with step-by-step instructions and clear explanation that encourages experimentation and play
Book DetailsLanguage : English
Paperback : 324 pages [ 235mm x 191mm ]
Release Date : December 2010
ISBN : 184969074X
ISBN 13 : 9781849690744
Author(s) : Michael James Williams
Topics and Technologies : All Books, Web Development, Flash, Beginner's Guides, Games
Table of ContentsPreface
Chapter 1: Introduction
Chapter 2: Welcome to the Graph
Chapter 3: Let Me In!
Chapter 4: Digging Deeper into the Graph
Chapter 5: Search Me
Chapter 6: Adding to the Graph
Chapter 7: FQL Matters
Chapter 8: Finishing Off
Pop Quiz Answers
- Chapter 1: Introduction
- What's so great about Facebook?
- It's popular
- It's everywhere
- It's interesting to develop for
- Web hosts
- What's a web host?
- Why do you need one?
- How do you choose one?
- Useful software
- What about domain names?
- How much AS3 knowledge is required?
- The source code
- Powered by…
- Watch out for caching
- A final note…
- Chapter 2: Welcome to the Graph
- Accessing the Graph API through a Browser
- Time for action – loading a Page
- Accessing the Graph API through AS3
- Time for action – retrieving a Page's information in AS3
- Time for action – deserializing a JSON object
- Time for action – visualizing the info
- Understanding connections
- Time for action – finding connections in a browser
- Rendering Lists
- Time for action – rendering Lists of Posts
- Rendering connections
- Time for action – displaying a Graph Object's connections
- Introducing the Requestor
- Time for action – creating an HTTP Requestor
- Understanding Connections of Connections
- Time for action – loading photos from an album
- Putting it all together
- Time for action – traversing the Graph
- Chapter 3: Let Me In!
- What can you see?
- Time for action – snooping through other people's accounts
- What's that got to do with the Graph API?
- Access tokens are proof of authorization
- User/Application authorization
- Time for action – registering an application with Facebook
- Application ID + logged-in user = access token
- Time for action – requesting an access token with the browser
- Registering a redirect URI with our application
- Using the Access Token
- Me, me, me
- Keeping secrets
- What did Facebook give us?
- Authenticating with AS3
- Time for action – Using an access token in our Graph visualizer
- That's cheating!
- Time for action – authenticating through the application
- A different approach
- Creating a callback web page
- Receiving the access token
- What about users who haven't used the application before?
- Extended permissions
- Time for action – obtaining extended permissions
- Time for action – requesting extended permissions
- I want it all, and I want it now
- Using the Adobe ActionScript 3 SDK for Facebook platform
- Time for action –implementing the SDK
- Chapter 4: Digging Deeper into the Graph
- Getting more results with paging
- Time for action – displaying the number of objects in a list
- Time for action – requesting more Objects
- Time for action – requesting more Objects at once
- Time for action – obtaining data in pages
- Time for action – adding limit and offset to GraphRequest instances
- Time for action – requesting data based on date
- Time for action – adding since and until to GraphRequest instances
- Time for action – filtering by date using the UI
- We gon' partition like it's yo' birthday
- Time for action – using the ids parameter in a Graph URL
- Chapter 5: Search Me
- Using the website's Search box
- Time for action – examining quick search results
- Time for action – Using the Full Search results
- Searching with a Graph URL
- Time for action – searching without authorization
- Time for action – searching while authorized
- Time for action – implementing a Search window in the
- Time for action – searching via the SDK
- Time for action – searching your news feed
- Time for action – searching a friend's Wall Posts
- Time for action – searching feeds through the Visualizer
- Chapter 6: Adding to the Graph
- Hello, Facebook!
- Time for action – posting to the user's feed
- Request methods
- What's a request method?
- Time for action – using the POST method
- Time for action – listening for errors
- Time for action – granting the required permission
- Time for action – posting via the SDK
- Going further with Wall Posts
- Time for action – publishing rich posts
- Posting to another Wall
- Time for action – posting to another Wall using the Visualizer
- Actions, privacy, and source
- Time for action – literally
- Time for action – setting a Post's privacy settings
- Deleting Graph Objects
- Time for action – deleting a Post
- Time for action – deleting Posts using the Visualizer
- Publishing other kinds of Graph Object
- Deleting Likes
- Event RSVPs
- What about...?
- Sending inbox messages
- Creating Pages, Groups, Applications, and Videos
- Changing biographical information
- Making Friends
- Inviting Friends to Events
- Chapter 7: FQL Matters
- What is FQL?
- Understanding the FQL interface
- Models of data
- Representations of data
- Getting information
- Time for action – retrieving info from the Page table
- What about connections?
- Photos, Albums, and their Owners
- Primary keys
- Crow's feet
- Link tables
- Time for action – getting a user's friends' names with AS3
- Time for action – an easier way
- Time for action – getting it down to one API call
- The Graph as a layer
- Checking existing permissions
- Getting more information
- Searches must use an indexable field
- Does this matter in practice?
- Advanced FQL
- Extra functions
- Calling multiple queries at once
- Chapter 8: Finishing Off
- Putting it online
- On Facebook
- Time for action – setting up an IFrame application
- Page tab
- Time for action – adding an application to a Page tab
- Off Facebook
- Your own website
- Flash game portals
- As a desktop AIR application
- Time for action – authorizing through AIR with HTTP
- Time for action – authorizing through AIR with the SDK
- As an AIR for Android Application
- Time for action – authorizing on Android
- Choosing your application's Facebook settings
- Getting your application out there
- Editing the application's profile page
- The Facebook Application Directory
- Watch out for these policies!
- What next?
- The Official AS3 Facebook SDK
- Other Facebook APIs
- Insights API
- Facebook Chat API
- Internationalization API
- Adobe Social service
- Related Technologies
- Open Graph Protocol
- Real-Time Updates
- Brand new and coming soon
- Facebook Credits
- Test users
- The New Messages
- Facebook developer resources
- Official Facebook resources
- Other great websites
- Me, me, me
- Keeping up with the Zuckerbergs
- Dealing with change
- Pop Quiz Answers
- Chapter 2
- Chapter 3
- Chapter 4
- Chapter 5
- Chapter 6
- Chapter 7
Download the code and support files for this book.
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.
Errata- 4 submitted: last submission 11 Jun 2013
Errata type: Others | Page number: 15 |
The book refers to a webpage: http://active.tutsplus.com/series/as3-101/. This should say: http://active.tutsplus.com/sessions/as3-101/
Errata type: Others
In Chapter 2, a variable called deserializedJson is referred to. This is a typo; it should be called decodedJson as in other sections of the chapter.
Errata type: Others | Page number: 139
On Page 139, the heading 'We gon' party like it's yo' birthday' should be titled 'We gon' partition like it's yo' birthday'.
Errata type: Others | Page number: 38 |
From the author:
In this section, I state that if you browse to "http://graph.facebook.com/PacktPub/posts" you should receive a JSON of posts from the PacktPub page. As of June 4, 2011, this URL will return an error; you now require what's called an "access token" to access this URL without an error. (See http://developers.facebook.com/blog/post/510/ for more details).
Fortunately, access tokens are explained in Chapter 3; I recommend you read the rest of Chapter 2 without attempting to follow the exercises (as you will need to understand the concepts explained), then read Chapter 3 (and do follow the exercises). Once you've finished Chapter 3, you can go back to Chapter 2 and use your newfound knowledge of access tokens to follow the exercises, if you like.
What you will learn from this book
- Make your AS3 projects more social and personalise them for your users by adding Facebook integration
- Grab information directly from Facebook into your applications by using Facebook's Graph API
- Securely authenticate your users with OAuth 2.0 to log them into Facebook
- Access information about your users and their friends directly from Facebook – no need to make them type it all in again
- Upload photographs, add wall posts, and create events through AS3
- Search on Facebook's databases with the powerful Facebook Query Language
- Build an AS3 Facebook SDK that you can drop into any AS3 project to add Facebook integration
- Easily access both public and private Facebook data from the surface of a graph
- Learn with exercises and fun examples illustrated with diagrams and screenshots
The Facebook platform provides you with an ideal solution for building rich, social experiences on the web to develop an effective user experience application. Combined with Flash which effectively enables social interactions, you can create a fully functional application on Facebook. If you've been waiting to get started with your own applications and games on Facebook, with this book you don't have to wait any longer.
This book takes you through everything you need to know to integrate your AS3 apps and games with Facebook accompanied by illustrative screenshots and short quizzes.It presents you with in depth coverage of the key underlying concepts such as creating a basic application that runs inside Facebook and exploring the Graph API which greatly simplifies how developers can retrieve data. This book also covers topics on security, permissions and authentication features on Facebook.
This beginner's guide starts off by teaching you about retrieving simple public data and then rapidly working your way up to authenticating users, building powerful searches across the entire database, and uploading photos and other content.
Throughout the book, you'll learn by building two fundamental components: an RIA Facebook interface and an AS3 SDK that you can drop into any project to add Facebook integration. This easy-to-understand guide has everything written as AS3-only projects with publicly available components, so you can follow along whether you use Flash Pro, Flex, or MXMLC – as long as you know AS3!
This hands-on tutorial will present you with a whole new perspective of the three core aspects of Facebook – searching, retrieving, and updating the data .This practical book focuses on how to set up an application on Facebook and how to deal with different contexts like AIR.
By the end of this book, you will be confident enough to set up your own application and create social interactions for users to share on Facebook.
Everything you need to know from integrating applications and games to searching, retrieving, and updating data on Facebook
This step-by-step book gives you an empty shell of an AS3 Facebook RIA, and guides you through writing the Facebook interaction code by means of fun examples, exercises, and code snippets.This beginner's guide focuses on getting you through all the major learning points in a smooth, logical order. You'll also see how to avoid some common pitfalls.
Who this book is for
If you are an AS3 developer who wants to create applications and games that integrate with Facebook – either on the Facebook website itself or off it, then this book is for you. Even if you have no previous experience with Facebook, databases, or server-side programming , you can count on this book.