O'Reilly logo

RESTful Java Patterns and Best Practices by Bhakti Mehta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Overview of the Facebook Graph API

The Facebook Graph API is a way to get information from Facebook data. Using the HTTP REST API, clients can do a variety of tasks such as query data, post updates and pictures, get albums and create albums, get the number of likes for a node, get comments, and so on. The following section covers how to get access to the Facebook Graph API.

Note

On the Web, Facebook uses a variant of the OAuth 2.0 protocol for authentication and authorization. The native Facebook App is used on iOS and Android.

To use the Facebook API, the client needs to procure an access token to work with OAuth 2.0. The following steps shows how to create the App ID and secret key and then get the access token to execute queries for Facebook data: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required