Information about message threads in a user's inbox as represented in FQL.
The Thread Graph API object provides similar information.
To access the thread table you need
Get all threads in a user's inbox. (Try this query)
SELECT thread_id, subject, recipients FROM thread WHERE folder_id = 0
Get all unread threads in a user's inbox. (Try this query)
SELECT thread_id, subject, recipients FROM thread WHERE folder_id = 0 and unread != 0
| Indexable | Name | Type | Description |
|---|---|---|---|
| * | thread_id | string | The ID of the thread being queried. |
| * | folder_id | string | The ID of the folder that belongs to the thread you are querying. The ID can be one of: 0 (for Inbox), 1 (for Outbox), or 4 (for Updates). |
| subject | string | The subject of the thread. | |
| recipients | array | The user IDs of the recipients of the thread. | |
| updated_time | int | The created_time of the most recent message in the thread. | |
| parent_message_id | string | The ID of the message from which this thread was branched, or 0 if this thread is not a branch. The parent_message_id is a concatenation of the thread ID and the message ID, joined by an underscore. | |
| parent_thread_id | int | The ID of the thread from which this thread was branched, or 0 if this thread is not a branch. | |
| message_count | int | The number of messages in this thread. | |
| snippet | string | A short bit of text from the most recent message. | |
| snippet_author | int | The user ID of the author of the snippet. | |
| object_id | int | The object that sent this message, or 0 if it was not sent by an object. You can get more information about this object in the profile table. | |
| unread | int | The number of unread messages in the thread. | |
| viewer_id | string | The ID of the user whose Inbox you are querying. |