Using the Graph API to read JSON data

In this recipe we will learn about the Graph API and the Facebook Query Language (FQL). The Graph API is the core of Facebook and represents a simple social graph pertaining to people and each of the connections they have, by representing each of the objects in the graph (for example, people, photos, events, and pages) and the connections between them (for example, friend relationships, shared content, and photo tags).

Getting ready

Following on from our previous recipe, we will learn how simple it is to access the Graph API by passing the Graph Path to the request method. This can be achieved by following the steps as outlined.

How to do it...

Within the facebook DEVELOPERS website, you can access the Graph API ...

Get Xcode 4 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.