Pages

2012年9月10日 星期一

利用fal 可查詢URL有多少like count

while the above would answer how to get the share count. This number is not equal to the one you see on the Like Button, since that number is the sum of:
  • The number of likes of this URL
  • The number of shares of this URL (this includes copy/pasting a link back to Facebook)
  • The number of likes and comments on stories on Facebook about this URL
  • The number of inbox messages containing this URL as an attachment.
So getting the Like Button number is possible with the Graph API through the fql end-point (thelink_stat table):
 
https://graph.facebook.com/fql?q=SELECT url, normalized_url, share_count, like_count, comment_count, total_count,commentsbox_count, comments_fbid, click_count FROM link_stat WHERE url='http://www.google.com'

沒有留言:

張貼留言