Get FB likes, shares and comments for a URL using PHP - with no limit [closed]

 ̄綄美尐妖づ 提交于 2019-12-01 12:42:05

问题


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:


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



来源:https://stackoverflow.com/questions/39064073/get-fb-likes-shares-and-comments-for-a-url-using-php-with-no-limit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!