Facebook评论框:评论中的“总评论和回复”的FQL

时间:2011-07-10 14:14:52

标签: facebook facebook-fql

我正在使用

select time from comment
where object_id in
 (select comments_fbid from link_stat where url ='http://www.example.com/post/')
ORDER BY time DESC

发现这篇文章有多少评论(我只是在这里计算答案)。当然,这并没有列出回复的数量。

是否存在可以计算评论+回复的等效FQL查询?

1 个答案:

答案 0 :(得分:3)

试试这个:

select time from comment where 
object_id in 
  (select comments_fbid from link_stat where url ='http://www.example.com/post/') 
or object_id in 
  (select post_fbid from comment where object_id in (select comments_fbid from link_stat where url ='http://www.example.com/post/'))