我正在使用
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查询?
答案 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/'))