PacktLib: Facebook Graph API Development with Flash

Facebook Graph API Development with Flash

Credits

About the Author

Acknowledgement

About the Reviewer

www.PacktPub.com

Preface

Introduction

What's so great about Facebook?

Web hosts

How much AS3 knowledge is required?

The source code

A final note…

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

Time for action - rendering Lists of Posts

Time for action - displaying a Graph Object's connections

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

Summary

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?

Time for action - registering an application with Facebook

Time for action - requesting an access token with the browser

Authenticating with AS3

Time for action - Using an access token in our Graph visualizer

Time for action - authenticating through the application

Time for action - authenticating via JavaScript

Extended permissions

Time for action - obtaining extended permissions

Time for action - requesting extended permissions

Using the Adobe ActionScript 3 SDK for Facebook platform

Time for action - implementing the SDK

Summary

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

Time for action - using the ids parameter in a Graph URL

Summary

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 Visualizer

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

Summary

Adding to the Graph

Hello, Facebook!

Time for action - posting to the user's feed

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

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

What about...?

Summary

FQL Matters

What is FQL?

Understanding the FQL interface

Getting information

Time for action - retrieving info from the Page table

What about connections?

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

Permissions

Restrictions

Advanced FQL

Summary

Finishing Off

Putting it online

Time for action - setting up an IFrame application

Time for action - adding an application to a Page tab

Time for action - authorizing through AIR with HTTP

Time for action - authorizing through AIR with the SDK

Time for action - authorizing on Android

Getting your application out there

Watch out for these policies!

What next?

Keeping up with the Zuckerbergs

Summary

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Index