Facebook Developers
DocsToolsSupportNewsApps
Log In
  • Social Plugins
  • Facebook Login
  • Open Graph
  • Facebook APIs
    • Graph API
    • FQL
    • Open Graph
    • Dialogs
    • Chat
    • Internationalization
    • Ads
  • Games
  • Payments
  • App Center
  • Promote Your App
  • iOS
  • Android
  • JavaScript
  • PHP
  • More SDKs
  • Objects
    • Achievement(Instance)
    • Album
    • Application
    • Checkin
    • Comment
    • Domain
    • Errors
    • Event
    • Field Expansion
    • FriendList
    • Group
    • Insights
    • Link
    • Message
    • Note
    • Offer
    • Order
    • Page
    • Pagination
    • Payment
    • Photo
    • Pictures
    • Post
    • Privacy Parameter
    • Publishing
    • Question
    • QuestionOption
    • Realtime Updates
    • Review
    • Search
    • Selecting Results
    • Status message
    • Thread
    • User
    • Video

Thread

Facebook APIs › Graph API › Thread

Please note: We are in the process of making the new messages system available to all users, at which point this API will replace the /inbox/ Graph API endpoint. We are providing early access to this API for registered developer accounts only until the new messaging system is broadly available. You should use the /inbox endpoint for production applications at the current time.

A message thread in the new Facebook messaging system as represented in the Graph API. The User object has a threads connections.

To read a thread, issue an HTTP GET request to /THREAD_ID with the read_mailbox permission.


Fields

The Thread object has the following fields.

Accessing Thread objects always requires a user session and the read_mailbox extended permission.

NameDescriptionPermissionsReturns
id

The unique ID for this message thread

read_mailbox

string

snippet

Fragment of the thread for use in thread lists

read_mailbox

string

updated_time

Timestamp of when the thread was last updated

read_mailbox

string containing ISO-8601 date-time

message_count

Number of messages in the thread

read_mailbox

integer

unread_count

Number of unread messages in the thread

read_mailbox

integer

tags

Thread tags

read_mailbox

array of objects containing name

participants

List of the thread participants

read_mailbox

array of objects each containing name, email, and Facebook id (if available)

former_participants

List of former thread participants who have unsubscribed from the thread

read_mailbox

array of objects each containing name, email, and Facebook id (if available)

senders

List of participants who have sent a message in the thread

read_mailbox

array of objects each containing name, email, and Facebook id (if available)

messages

List of the message objects contained in this thread

read_mailbox

array of message objects


Connections

The Thread object has the following connections.

These connections cannot be created or deleted via the Graph API.

NameDescriptionPermissionsReturns
tags

Thread tags.

read_mailbox

array of objects containing name

participants

List of the thread participants

read_mailbox

array of objects each containing name, email, and Facebook id (if available).

former_participants

List of former thread participants who have unsubscribed from the thread

read_mailbox

array of objects each containing name, email, and Facebook id (if available).

senders

List of participants who have sent a message in the thread

read_mailbox

array of objects each containing name, email, and Facebook id (if available).

messages

List of the message objects contained in this thread

read_mailbox

array of message objects.

Updated on Friday
Facebook © 2013 · English (US)
AboutAdvertisingCareersPlatform PoliciesPrivacy Policy