有没有办法让用户创建所有评论..
user_id在注释表中不是可索引的而是object_id ...
SELECT id, text, time, fromid FROM comment WHERE object_id='10151309718465667'
并且流表不返回任何类型:257(已创建评论)
SELECT type, object_id FROM stream WHERE source_id = me()
现在似乎可以直接获得用户评论。
答案 0 :(得分:0)
我使用以下查询:
SELECT id, text, time, fromid FROM comment
WHERE post_id in
(SELECT post_id FROM stream WHERE filter_key IN
(SELECT filter_key from stream_filter where uid = me()))
and fromid = me() limit 500
它没有得到所有评论,但你会得到用户在他/她的墙上做的评论