Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getPost doesn't return likes object #181

Open
mkmetko opened this issue Apr 7, 2018 · 1 comment
Open

getPost doesn't return likes object #181

mkmetko opened this issue Apr 7, 2018 · 1 comment

Comments

@mkmetko
Copy link

mkmetko commented Apr 7, 2018

With both devtools and stable version, I get only post and comments objects, likes are not retrieved. I understand that personal parts (First and Last name) are missing, I need only anonymized data. Is it still possible to get likes for specific posts?

@nlch
Copy link

nlch commented Apr 9, 2018

Hi @mkmetko ,

this is the issue I opened and closed a while ago about the missing likes table in the getPost request.
Basically, Facebook has begun to authorize this edge only to page owners.
So you can't get the users' name or id (so no likes) unless you use a page token associated to an admin of the page. The most you can get is the aggregated reactions with the getReactions function i guess.

If you do have admin access to the page, here's a link on how to get the token: link
With this page token you should get the likes (also all reactions with user ids/names). There's also a new endpoint available that gives you access to ALL posts made in your page (no function for that in Rfacebook yet but you can use it with a simple modification in the getPages function by changing how you build the url)

From Graph Api Reference: "On February 5th, 2018, User information will not be included in responses unless you make the request with a Page access token. This only applies to Comments on Pages and Posts on Pages."
link2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants