【问题标题】:Different results from querying Facebook link_stat using http and https使用 http 和 https 查询 Facebook link_stat 的不同结果
【发布时间】:2012-02-09 16:45:22
【问题描述】:

我正在尝试查询特定 URL 的点赞数和分享数。该网站以 HTTP 和 HTTPS 提供页面。

但是,我注意到 HTTP 和 HTTPS 的跟踪方式不同。使用以下查询显示行为。

https://api.facebook.com/method/fql.query?query=SELECT%20like_count,share_count%20FROM%20link_stat%20WHERE%20url%20IN%20%28%22www.oyezdigital.com/dwmoment/Gallery/Photo/10%22,%22https://www.oyezdigital.com/dwmoment/Gallery/Photo/10%22%29

输出:

<fql_query_response list="true">
    <link_stat>
        <like_count>0</like_count>
        <share_count>0</share_count>
    </link_stat>
    <link_stat>
        <like_count>1</like_count>
        <share_count>1</share_count>
    </link_stat>
</fql_query_response>

点赞的链接是 HTTPS 版本。

如何获得合并的点赞数和分享数?还是我做错了什么?

【问题讨论】:

    标签: facebook


    【解决方案1】:

    我建议您在应用中显示点赞数和 share_count 时将结果结合起来。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-29
      • 2015-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-12-05
      • 1970-01-01
      相关资源
      最近更新 更多