Reputation: 3189
This looks a kind of duplicate question but actually NOT.
So the problem is https://www.facebook.com/julytalk/ has events, for sure. But when I tried on Facebook Group API toolkit, it returns empty array.
Why is this happening? I could not find any Facebook API endpoint modification notice, at all. It was working okay before.
Please help me.
Upvotes: 25
Views: 12053
Reputation: 1315
The above answer was misleading for me, not because its wrong but because so many things have changed on Facebook's side and I needed further clarification.
This is the current state based on my research (25.08.2020.).
There are several types of events available based on where the event destination is:
User events
Documentation terminology: "Events on User"
API endpoint:
me/events
Page Events
Documentation terminology: "Events on Groups"
API endpoints:
me/groups
group_id/events
Group Events
Documentation terminology: "Events on Pages"
API endpoint:
me/accounts
page_id/events
App Events
Documentation terminology: "Events on an App"
API endpoint:
{application-id}/events
The list is taken mostly from Facebooks API event endpoint.
The documentation is wrong on event limitations:
Access to Events on Users and Pages is only available to Facebook Marketing Partners.
The current state is that "Access to Events on Users and Pages is available to": A) App Admins (verified with testing) B) App Developers (verified with testing) C) App Testers (not verified) D) Facebook Marketing Partners (not verified)
What does this mean?
This means if your query the "me/accounts
" endpoint which will give you a list of page ids.
When you select a page id and then query "your_selected_page_id/events
" you will receive:
I have tested this with different API versions 4.0 - 8.0
and the results were the same.
I have also tested this with a different but similar set of permissions, resulting in the same empty array response.
SOLUTION(S):
TODO: UPDATE: Clarify who needs to become FMP.
To query for page events "someone" needs to be a Facebook Marketing Partner. https://developers.facebook.com/support/bugs/352704275741601/
Invite your users to become testers.
Helpful links:
Read more on Facebook Marketing Partners.
Officially on Facebook Marketing Partners.
Additional notes:
Upvotes: 3
Reputation: 74014
https://developers.facebook.com/blog/post/2018/04/04/facebook-api-platform-product-changes
Access to the Events API is not possible at the moment:
...apps currently accessing Events and Groups APIs will lose access today
Update: After Facebook did a lot of changes, it seems to be possible to get events again. You can get events from Pages you manage easily in dev mode. If you want to get public events, you may want to read the answer in this thread: Facebook pages API: "Page Public Content Access" review screencast
Upvotes: 21