开发者

How to collect a URL's facebook likes

Using https://graph.facebook.com/id/likes?access_token=XXXXXXX works for some urls as does http://graph.facebook.com/?ids=url but some urls from locations like washingtonpost.com and techcrunch.com don't have the 'likes' data but it must 开发者_开发知识库be available because itstrending.com has these sites listed, with accurate likes counts.

Thanks


You can do this through FQL:

SELECT like_count FROM link_stat WHERE url="http://www.washingtonpost.com"

returns 287.


After digging around some more, I found this: http://developers.facebook.com/docs/reference/rest/links.getStats

Which gives you shares, likes and comments on a url.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜