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.
You can get a User's profile picture with the
picture edge of the
See the User Picture edge reference for more information.
You can get a User's email address with the
See the User node reference for more information.
You can get a User's friends list with the
friends edge of the
See the User Friends edge reference for more information.
You can get a User's feed with the
feed edge of the
See the User Feed edge reference for more information.
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 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.
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.
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 a Page permission. Once a Page 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.