Chapter 2. Welcome to the Graph

Facebook has a huge store of information, on people, companies, events, photo albums, and more. It also knows how all of these are linked: which person owns each album; which people appear in each photo; which company is organizing each event.

For four years, this was accessed using a huge, sprawling API, which got more complex as new abilities were bolted on to it. In April 2010, Facebook launched the Graph API, greatly simplifying how developers can retrieve all of this data.

In this chapter we shall:

  • Explore the Facebook Graph
  • Learn what the Graph API is, and how it structures all the data on Facebook
  • Access public Graph data using AS3 and the Graph API

So let's get on with it.

Accessing the Graph API through a Browser ...

Get Facebook Graph API Development with Flash now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.