Facebook的 - 从FB检索评论数:使用HREF评论? [英] Facebook - retrieving comment-count from fb:comments using href?
本文介绍了Facebook的 - 从FB检索评论数:使用HREF评论?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经集成的FB:使用href参数评论,但现在我停留在一个情况下,我需要检索的注释计数,而FB:评论数
I've integrated fb:comments using the href parameter, but I am now stuck in a situation where I need to retrieve the comment count without fb:comment-count.
我通常使用的FQL查询,如下面...
I normally use an FQL query such as below...
$result = $facebook->api(array(
'query' => 'SELECT post_id FROM comment WHERE xid = "' . $xid . '"',
'method' => 'fql.query'));
$comment_count = count($result);
然而,在注释表中没有的href列present。是否有另一种方式来做到这一点?我曾尝试看是否XID和HREF是可以互换的...没有运气。我还发现,FB:/:与XID ID是打破我(很多见 HTTP创建的注释插件/65beta.us/fb/fb1.php )。
任何意见将是极大的AP preciated。谢谢!
Any advice would be greatly appreciated. Thanks!
推荐答案
您可以轻松地到达评论和喜欢这样计数:的 http://graph.facebook.com/?ids=http://65beta.us/fb/fb1.php
You can easily reach comment and like counts like this: http://graph.facebook.com/?ids=http://65beta.us/fb/fb1.php
这篇关于Facebook的 - 从FB检索评论数:使用HREF评论?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文