Reputation: 13154
I fetch events of some pages. I used app access token, but switched to user access token (of my own facebook account) due to alcohol and other restrictions. Now I can access those events.
But I cannot access them when they're organized by a private person, not a fanpage. Those events are public and when I use Facebook I can see them without any problem. But when I use my access token, no events are returned (not in graph api explorer, not in php sdk). Why is that? Do I need some permission or is there some other restriction?
To reproduce:
Choose a person who organises public events (but is not a Page) - use your account to see those events. E.g. https://www.facebook.com/alexandra.pajewska (she created e.g. this event http://graph.facebook.com/452665288126076 - I can see its details when using my access token).
Run graph api explorer and use your access token to fetch those events e.g. 1544945688/events
You should see this:
{
"data": [
]
}
EDIT: Probably not related to permissions. I enabled all of them in graph api explorer, but still got the same result.
Upvotes: 1
Views: 614
Reputation: 22933
That page says it all:
To read
the /events
connection of a User, you need:
- the
user_events
permission for the current user- the
friends_events
permission for a friend of the current user
You need one permission to read the events of the current user and another for the friends. It definitely means that we are exclusively allowed to access the events of the app's user and its friends and that we are not allowed to get a random user's events.
Upvotes: 2