As an Admin of a closed Facebook group, I’m trying to fetch the reactions on the posts contained within. I’ve tried using the Graph API explorer but I simply cannot get it to return any results using a user token. I’m using these endpoints:
https://developers.facebook.com/docs/graph-api/reference/photo/reactions/
I’ve tried using the above photo reactions endpoint, and also the insights endpoint with post_reactions_like_total:
https://developers.facebook.com/docs/graph-api/reference/v3.2/insights#availmetrics
I’ve used in the address bar:
20728370730XXXXX_22114053XXXXXX/reactions
But nothing seems to work. Does anyone know the best way to go about this or what I’m doing wrong? Thanks for your help!
2
Answers
You cannot use those APIs on Groups. Groups access via Apps (including APIs) were severely limited after all of the Facebook privacy issues.
The only things you can do via groups are using the Groups API which is a collection of Graph API endpoints for groups.
You can get post information and posts with personal information removed. I’m unsure if you can get reactions on the posts, but you can get the text and ID.
Only the total reactions count seems to be available:
https://developers.facebook.com/docs/graph-api/reference/v3.2/object/reactions says,
So if you reacted to any post yourself, you should be able to get that reaction, with your own user token – but everything else does not seem to be exposed to you via API any more.
(Other services might have special access, or they are probably just scraping the data.)