【问题标题】:Find Like Count for a URL | REST API and FQL returns wrong vales查找 URL 的点赞数 | REST API 和 FQL 返回错误的值
【发布时间】:2012-02-16 23:40:48
【问题描述】:

【问题讨论】:

  • REST API 无论如何都已被弃用,因此您根本不应该使用它。仅将 Graph API 用于您的应用程序。

标签: facebook facebook-graph-api facebook-fql facebook-rest-api


【解决方案1】:

请注意:Facebook 正在弃用 REST API https://developers.facebook.com/blog/post/616/ 最好选择 Graph API/FQL 方法。

最好使用FQL方法,

https://graph.facebook.com/fql?q=SELECT%20url,%20normalized_url,%20share_count,%20like_count,%20comment_count,%20total_count,commentsbox_count,%20comments_fbid,%20click_count%20FROM%20link_stat%20WHERE%20url='http://www.google.com'

这会返回,

{
   "data": [
      {
         "url": "http://www.google.com",
         "normalized_url": "http://www.google.com/",
         "share_count": 4989540,
         "like_count": 1317162,
         "comment_count": 1684401,
         "total_count": 7991103,
         "commentsbox_count": 807,
         "comments_fbid": 396269740024,
         "click_count": 265614
      }
   ]
}

【讨论】:

    猜你喜欢
    • 2012-04-25
    • 1970-01-01
    • 2015-06-21
    • 1970-01-01
    • 2019-01-25
    • 1970-01-01
    • 2011-12-29
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多