如何仅使用Graph API或FQL获取未读消息的页面对话?
我在FQL和Graph API中没有找到任何表格参考,我无法弄清楚我是否只能过滤未读消息
答案 0 :(得分:2)
我是这样做的。
SELECT sender, body FROM unified_message
WHERE thread_id IN
(SELECT thread_id FROM unified_thread WHERE folder = 'inbox' AND unread=1)
AND unread=1
ORDER BY timestamp DESC
答案 1 :(得分:0)
unread
参数未编入索引,因此无法搜索。您将获得所有消息,并自行过滤。
答案 2 :(得分:0)
这是用于查看未读对话的fql:
SELECT message_id, author_id, body, created_time, viewer_id, thread_id FROM message WHERE thread_id IN (SELECT thread_id FROM thread WHERE folder_id = 0 and unread != 0)