Query this table to return information about messages in a thread. The user needs to grant the calling application the read_mailbox extended permission.
Highlighted rows are indexable / searchable and one is usually required in the WHERE portion of the query.
|message_id||string||A unique ID for the message being queried.|
|thread_id||int||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.|
|attachment||array||An array of information about the attachment to the message. This is the attachment that Facebook returns.|
|viewer_id||int||The ID of the user whose Inbox you are querying. Defaults to session user.|
Get all messages in a thread.
SELECT ... FROM message WHERE thread_id = ...
To get started, as a developer you can access the Inbox APIs via the read_mailbox permission in order to develop and test your application. To launch your application to all users, please apply to the Inbox API whitelist.