Yiannis Koulizakis
Yiannis Koulizakis

Reputation: 21

Getting different results between PHP SDK and Graph API explorer

I'm facing the following problem:

When I'm trying to read all the comments from a posto of me on facebook via the Facebook php sdk ( Graph API) i can't get all of them, while when I am using the Facebook Graph API explorer, they are all appearing.

My App's permissions are the same with Graph API explorer's permissions.

Any ideas? Thanks..

Upvotes: 1

Views: 734

Answers (2)

Elix
Elix

Reputation: 21

in the Graph API Explorer, try to change Application (by default is Graph API Explorer) with your App.

if still can't get all of the comments, just delete you App, and recreate.

Upvotes: 1

cpilko
cpilko

Reputation: 11852

Are you authenticating as a user in your PHP app? In the Graph API explorer, by default you have a user access token. If your app is just using the app id & secret, you will not see any post marked with a privacy less than "everyone."

You can test this in the explorer by getting an app access_token and pasting this into the access token box in the graph explorer.

Upvotes: 1

Related Questions