Answer the question
In order to leave comments, you need to log in
How to get number of FB Likes via Graph API 2.12?
Greetings!
The problem is this:
There is a blog, articles are published on it, and links are posted in a group on facebook.
On the old api (before 2.10), they made a request like https://graph.facebook.com/site page link and received json with likes.
On the new version of the api, it is not possible to get likes from the post, because. it is necessary to get the id of this post of the form id-group_id-post
how to link the url of the page and the post?
Answer the question
In order to leave comments, you need to log in
If you do not have the token of the page itself, then the number of likes may not be received. It all depends on the policy of the page.
When you publish a link, the API returns the post id to you, save this id to the database and then query the post directly.
If you want detailed information , request the read_insights permission and interrogate the post like this:GET /<post_id>/insights/metric?options...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question