Get FB likes, shares and comments for a URL using

2019-02-21 04:35发布

How can I simple get count of likes, shares and comments from a URL using PHP?

The method using FQL or graph.facebook.com didnt work anymore.

I need also about 1000 requests per day, I need solution with request limit more then 1000.

1条回答
forever°为你锁心
2楼-- · 2019-02-21 04:56

I think that FQL became deceprated by the beginning of August. I've solved this problem using graph API and stating the fields argument

fields=likes.limit(0).summary(true),comments.limit(0).summary(true)

the fields likes and comments would give you a list of people who liked or commented on it, the .limit(0) means that you don't need any exact names mentioned and .summary(true) gives you more detailed info on it - the number of likes/comments.

I hope this explanation helps, you can find more info here https://developers.facebook.com/tools/explorer

查看更多
登录 后发表回答