Information about messages in a thread as represented in FQL.
The Message Graph API object provides similar information.
To access the message table you need
read_mailbox permissionsGet a list of threads for a given message_id
SELECT message_id, thread_id FROM message WHERE message_id = <your_message_id>
Get a list of messages for a given thread id
SELECT message_id FROM message WHERE thread_id = <your_thread_id>
Get detailed information about a thread
SELECT message_id, thread_id, author_id, body, created_time, attachment, viewer_id FROM message WHERE thread_id = <thread_id>
| Indexable | Name | Type | Description |
|---|---|---|---|
| * | message_id | string | A unique ID for the message being queried. |
| * | thread_id | string | The ID of the thread the message belongs to. |
| author_id | int | The ID of the user who wrote this message. | |
| body | string | The content of the message. | |
| created_time | int | The time the message was sent (represented as a unix timestamp) | |
| attachment | array | An array of information about the attachment to the message. This is the attachment that Facebook returns. | |
| viewer_id | string | The ID of the user whose Inbox you are querying. Defaults to session user. |