Facebook FQL查询从OTHER邮箱中的每个用户提取完整的线程

时间:2012-12-21 19:05:29

标签: facebook-fql fql.multiquery

FQL的新手,想要提取或不提取“OTHER”邮箱,并按用户对所有正文邮件进行分组。下面的查询示例仅捕获每条消息并仅在INBOX中。收件箱folder_id0,发件箱为1,更新为4。 OTHER收件箱的选项是什么?

SELECT message_id, thread_id, author_id, body, created_time, attachment FROM message WHERE thread_id IN (SELECT thread_id FROM thread WHERE folder_id = 0)

1 个答案:

答案 0 :(得分:0)

使用OR运算符

  

SELECT message_id,thread_id,author_id,body,created_time,attachment FROM message WHERE thread_id IN(SELECT thread_id FROM thread WHERE folder_id = 0 OR folder_id = 1 OR folder_id = 4)