Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unbale to read data using Graph API Explorer

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.

like image 955
Xolve Avatar asked Nov 16 '13 20:11

Xolve


People also ask

What is graph explorer in Microsoft Graph API?

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.

How to get data from the graph API?

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:

How do I run a GET request in graph explorer?

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.

How do I view the response from Microsoft Graph API?

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.


1 Answers

I had the same error... the problem was "Ghostery" addon for Chrome. Good Luck!!

like image 126
user1639764 Avatar answered Sep 19 '22 09:09

user1639764