【问题标题】:Facebook - retrieving comment-count from fb:comments using href?Facebook - 使用href从fb:comments中检索评论数?
【发布时间】:2011-11-04 06:49:51
【问题描述】:

我已经使用 href 参数集成了 fb:cmets,但我现在陷入了需要在没有 fb:comment-count 的情况下检索评论计数的情况。

我通常使用如下 FQL 查询...

$result = $facebook->api(array(
    'query' => 'SELECT post_id FROM comment WHERE xid = "' . $xid . '"', 
    'method' => 'fql.query'));

$comment_count = count($result);

但是,评论表中没有 href 列。还有另一种方法可以做到这一点吗?我试过看看 xid 和 href 是否可以互换......那里没有运气。我还发现使用 xid id 创建的 fb:cmets 插件对我造成了很大影响(请参阅 http://65beta.us/fb/fb1.php )。

任何建议将不胜感激。谢谢!

【问题讨论】:

    标签: facebook api comments facebook-fql


    【解决方案1】:

    您可以像这样轻松获得评论和点赞数:http://graph.facebook.com/?ids=http://65beta.us/fb/fb1.php

    【讨论】:

      猜你喜欢
      • 2011-03-21
      • 1970-01-01
      • 2017-05-30
      • 1970-01-01
      • 2012-05-06
      • 1970-01-01
      • 1970-01-01
      • 2010-09-25
      相关资源
      最近更新 更多