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
  • Tables
    • album
    • app_role
    • application
    • apprequest
    • checkin
    • comment
    • comments_info
    • connection
    • cookies
    • column
    • developer
    • domain
    • domain_admin
    • event
    • event_member
    • family
    • friend
    • friendlist
    • friendlist_member
    • friend_request
    • group
    • group_member
    • insights
    • like
    • link
    • link_image_src
    • link_stat
    • location_post
    • mailbox_folder
    • message
    • note
    • notification
    • object_url
    • offsite_conversion_event
    • page
    • page_admin
    • page_blocked_user
    • page_global_brand_child
    • page_fan
    • page_milestone
    • permissions
    • permissions_info
    • photo
    • photo_src
    • photo_tag
    • place
    • privacy
    • privacy_setting
    • profile
    • profile_tab
    • profile_view
    • question
    • question_option
    • question_option_votes
    • review
    • score
    • standard_friend_info
    • standard_user_info
    • status
    • stream
    • stream_filter
    • stream_tag
    • subscription
    • table
    • thread
    • translation
    • unified_message
    • unified_message_count
    • unified_message_sync
    • unified_thread
    • unified_thread_action
    • unified_thread_count
    • unified_thread_sync
    • url_like
    • user
    • video
    • video_tag

unified_message

API Reference › FQL › unified_message

Description

Access information about messages in a thread.

Columns

NameDescription

action_id

string

Version ID that increases in the same order as messages are received by Facebook. If messages arrive out of order, this ordering can theoretically be different from the timestamp-based ordering, since timestamps for email-originated messages are based on the timestamp of the sender's email client

attachment_map

array

Map from attachment IDs to objects containing information about the attachment (file size, type, etc.)

attachments

array

List of attachment IDs. Attachments correspond to any attached file

body

string

Body of the message

containing_message_id

string

ID of the parent message

coordinates

struct

Coordinates of the location associated with this message

latitude

float (min: -90) (max: 90)

A float, in decimal degrees, describing the latitude. Minumum is -90.0, maximum is 90.0.

longitude

float (min: -180) (max: 180)

A float, in decimal, describing the longitude. Minumum is -180.0, maximum is 180.0.

altitude

float

A float, in meters, describing the altitude.

accuracy

float

A float, in meters, describing the accuracy.

altitudeAccuracy

float

A float describing the accuracy of the altitude.

heading

float

A double or null, in degrees, describing the heading direction calculated based on previous position.

speed

float

A double or null, in meters/second, describing the speed calculated based on previous position.

timestamp

timestamp

A UNIX timestamp for the time of the request

forwarded_message_id

string

ID of the forwarded message

forwarded_messages

array

Forwarded messages

html_body

string

HTML representation of the message body

is_forwarded

bool

Whether the message is forwarded

is_user_generated

bool

Whether the log message has a user-generated body

log_message

struct

The log message associated with this message

videoCallLog

struct

Log information for the video call

answered

bool

Whether the video call was answered

startTime

timestamp

Start time of the video call (UNIX timestamp)

endTime

timestamp

End time of the video call (UNIX timestamp)

callLog

struct

Log information for the call

type

string

Type of the call message (video call, SMS, etc.)

callEndPoint

string

Endpoint of the call

duration

unsigned int32

Duration of the call

message

string

The message content

smsLog

struct

Log information for the SMS

type

string

Type of the call message. E.g. video call, SMS

callEndPoint

string

Endpoint of the call

message

string

The message content

voiceMailLog

struct

Log information for the voice mail

type

string

Type of the call message. E.g. video call, SMS

callEndPoint

string

Endpoint of the voice mail

duration

unsigned int32

Duration of the voice mail

message

string

Message content of the voice mail

audio

struct

Audio of the voice mail

id

string

ID of the attachment

type

int32

Type of the attachment

mime_type

string

Mime type of the attachment

filename

string

Filename of the attachment

file_size

unsigned int32

File size of the attachment

image_data

struct

Image data of the attachment

width

int32

Width of the image attachment

height

int32

Height of the image attachment

voicemailUid

id

User ID of the voicemail recipient

threadName

string

Name of the thread

threadPic

struct

Picture of the thread

deleted

bool

Whether the thread picture has been deleted

mimeType

string

Mime type of the thread picture

fileSize

unsigned int32

File size of the thread picture

hash

string

Hashed data of the thread picture

message_id

string

ID of the message

object_sender

struct

Sender of the message in the case that it is a Facebook page, group or event

object_address_type

number

Type of the object address

id

string

ID of the object address

offline_threading_id

string

Client provided message ID that clients like Facebook Messenger can use to associated a unique ID with the message being sent

recipients

array

List of message recipients

sender

(null) or (struct with keys: name, email, user_id)

Sender of the message

share_map

array

Map from share IDs to objects containing information about the shared objects

shares

array

List of share IDs. Shared items include links, videos, and photos as were supported in the old messaging system

subject

string

Subject of the message

tags

array

List of users tagged in the message

thread_id

string

ID of the thread

timestamp

numeric string

Last update time of the thread (UNIX timestamp)

unread

bool

Whether the message is unread

Examples

  • SELECT ... FROM unified_message WHERE message_id = A
  • SELECT ... FROM unified_message WHERE thread_id = A
Note: Additional filters on other columns can be specified but they may make the query less efficient.

Permissions

Access to this table requires the read_mailbox extended permission.

Facebook © 2013 · English (US)
AboutAdvertisingCareersPlatform PoliciesPrivacy Policy