FAQ

Go to the Graph API Explorer. You must be logged into Facebook in order to access the Graph API Explorer. You will also need to generate a user access token, which can be done directly in the Graph API Explorer. Once you've done these steps, you are ready to submit requests through the Graph API Explorer interface.

Find more information about Graph API Explorer access token generation and request submissions in the Graph API Explorer documentation.

You will need an access token, which is obtained via Facebook Login, in order to make Graph API calls from your app. Graph API requests go through a host URL, most usually graph.facebook.com, and the object ID of the node you are trying to access.

You can read any node or edge by performing a GET operation on the relevant endpoint. You can choose the fields or edges that you want returned with the fields query parameter. You can also order certain data sets chronologically.

For more information, see the Graph API Overview, which documents the basics of Graph API terminology and structure, and the Using the Graph API documentation, which contains more details about the various operations you can perform with the Graph API.

Profile Pictures

You can get a User's profile picture with the picture edge of the /user node.

See the User Picture edge reference for more information.

User Email Addresses

You can get a User's email address with the email field of the /user node.

See the User node reference for more information.

Friends Lists

You can get a User's friends list with the friends edge of the /user node.

See the User Friends edge reference for more information.

Posts

You can get a User's feed with the feed edge of the /user node.

See the User Feed edge reference for more information.

Only Pages can send private messages to Users, and then, only when the User has initiated the contact. A Page access token is required.

See the Conversation Messages edge reference for more information about viewing and replying to a User's conversation with a Page.

Yes, posting a comment using the Graph API Explorer is possible. See Example 2: Post a Comment in the Graph Explorer Guide for step-by-step instructions.

The API Upgrade Tool can help you determine which version changes will affect your API calls. We recommend upgrading multiple versions at a time and upgrading to the latest available version to maximize the time between upgrades.

The Graph API Version Upgrade Guide provides information about upgrading to a newer version.

The Changelog documents versioned changes to the Graph API and Marketing API, and any products or services that rely on them

User Access Tokens

User access tokens are generally obtained via a login dialog and require a person to permit your app to obtain one. For information about using the different SDKs to get an access token, see the Facebook Login User access token documentation.

App access tokens

You need an App access token to modify and read the app settings; they are obtained via a server-to-server call. For information about generating an App access token, see the Facebook Login App access token documentation.

Page access tokens

You need a Page access token to make Graph API calls when managing Facebook Pages. To generate a Page access token, an admin of the page must grant an extended permission called manage_pages. Once this permission has been granted, you can retrieve the Page access token using a User access token with the required permissions and a Graph API call. For information about generating a Page access token, see the Page Access Tokens, Permissions, and Roles documentation.

The /me shown in examples and the Graph API Explorer tool represents the object being queried. This can be you, where /me represents your User id, or your page, where /me represents your Page id.