I am using Facebook APIs for the first time. I am trying to find my way around using Graph API Explorer.
I authorise it access my basic permission and generate an access token. Then I type me in the query box for GET method and click submit. I get the following output:
{
"error": "Request failed"
}
Debug information on token tells me that it is the right application and user. What am I doing wrong here?
Update: Browser addon (Ghostery to be exact) was blocking Facebook Graph API. Rest of the steps were OK.
Graph Explorer is a developer tool that lets you conveniently make Microsoft Graph REST API requests and view corresponding responses. This article describes how to use some of the important features in Graph Explorer.
For those of you who might be interested I have found the solution to this issue, basically it is to first parse the JSON result from the graph api, then you need to compose or call the array section into a loop and parse that section one more time and that is it data from graph api request is now usable. Screenshots below to support this method:
To run a GET request in Graph Explorer, you don’t have to be signed in. Just click a sample query and sample data will show in the response preview. Select a sample query and run it. Get the HTTP response code. See the response from the Microsoft Graph API with sample data.
See the response from Microsoft Graph API. To view the response in a format other than the default JSON, choose the Request headers tab in the request pane, define the key/value pair, and click Add. Visit Graph Explorer.
I had the same error... the problem was "Ghostery" addon for Chrome. Good Luck!!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With