Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对 Facebook api 很陌生,想知道是否可以通过 api 在给定时间段内获取任何特定页面的点赞数和评论数?
提前致谢。
你可以使用FQL:
FQL
例如
select comment_count, share_count, like_count from link_stat where url = "http://techcrunch.com/2011/04/12/facebook-comments-now-on-over-50k-sites-get-more-social-with-latest-upgrade/"
你可以使用这个 api explorer 作为你的参考:
https://developers.facebook.com/tools/explorer/?fql=select+comment_count%2C+share_count%2C+like_count+from+link_stat+where+url+%3D+%22http%3A%2F%2Ftechcrunch.com%2F2011 %2F04%2F12%2Ffacebook-comments-now-on-over-50k-sites-get-more-social-with-latest-upgrade%2F%22