【问题标题】:FQL like, share, comment count accuracyFQL 点赞、分享、评论计数准确性
【发布时间】:2014-03-03 16:41:04
【问题描述】:

通常,给定 URL 的 fql 编号(例如,分享、评论、总计数似乎已关闭)。

例如这个网址

http://www.france24.com/en/20140112-reporters-crimean-tatars-unending-exile-identity-ethnic-minority-muslims-central-asia-ukraine

FQL 显示:

share_count: 18377
like_count: 16215
comment_count: 8840
total_count: 43432

图形 api 显示的数字非常不同,如果您检查 url 本身上的 facebook 小部件计数,它的计数完全不同。

任何人都知道发生了什么以及如何获得准确的数字。

【问题讨论】:

  • 从未使用过任何 facebook 的东西,但不同的结果会向我暗示某种数据缓存。就像stack exchange data queries work 的方式(注意"last updated yesterday" 部分......只是猜测,但可能会给你一个搜索的想法
  • “FQL 节目” – 不,我没有。我从 FQL link_stat 表中获得该 URL 的结果,Graph API 和官方 Like 按钮中显示的总计数是一致的 - 方式低于您显示的数字(a截至目前,总数为 77 个)。不知道你从哪里得到你的号码……
  • 谢谢您,CBroe 您在查看我发布的网址吗?没有 / 在网址的末尾?如果您将 / 添加到结尾,您将得到 77,如小部件所示。没有/我的总数 link_stat 表显示 43532 。
  • 如果有人能对此有所了解,我将不胜感激。

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


【解决方案1】:

当使用您提供的 url 查询 link_stat 时,我们会看到以下内容:

select comment_count, like_count, share_count, total_count 
  from link_stat where url = 'http://www.france24.com/en/20140112-reporters-crimean-tatars-unending-exile-identity-ethnic-minority-muslims-central-asia-ukraine/'
{ “数据”: [ { “comment_count”:10, “like_count”:55, “share_count”:18, “总数”:83 } ] }

但是,当使用网站 france24.com 的父 url 查询 link_stat 时,我们会看到您的确切数字(当然会略有变化,但几乎相同)。所以检查你的查询 - 也许你在你的请求中以某种方式剪切了 url?

select comment_count, like_count, share_count, total_count 
  from link_stat where url = 'http://www.france24.com/'
{ “数据”: [ { “comment_count”:8840, “like_count”:16415, “share_count”:18377, “总数”:43632 } ] }

【讨论】:

  • 您好 user15,谢谢。是的,网址末尾有/,这些是数字。问题在于最后没有 / 的 url,就像这样 france24.com/en/…
  • 对于同一个问题,是否有 fql 的替代品(因为 fql 不适用于 2 以上的版本)。有没有提供相同输出的api?
  • @sudil 你应该看看 facebook 的见解 developers.facebook.com/docs/graph-api/reference/v2.1/insights 但这对我来说有点过于复杂了
【解决方案2】:

也许我最初的问题并不清楚,问题在于 2 种形式的相同 url 在 fql、web facebook 小部件等中返回完全不同的结果。有问题的 url 是

http://www.france24.com/en/20140112-reporters-crimean-tatars-unending-exile-identity-ethnic-minority-muslims-central-asia-ukraine

http://www.france24.com/en/20140112-reporters-crimean-tatars-unending-exile-identity-ethnic-minority-muslims-central-asia-ukraine/

除了结尾 / 之外,URL 都是相同的

【讨论】:

    【解决方案3】:

    facebook 将 url 视为字符串。区分大小写,重要的是您如何将其传递给 url。所以,对于 facebook,实际上有两个不同的 url:/ 如果有人用“U”写乌克兰,也会发生同样的情况。

    http://www.france24.com/en/20140112-reporters-crimean-tatars-unending-exile-identity-ethnic-minority-muslims-central-asia-Ukraine

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-12-29
      • 1970-01-01
      • 2011-11-07
      • 2012-04-25
      • 2014-10-05
      • 1970-01-01
      • 2018-08-02
      • 2013-11-16
      相关资源
      最近更新 更多