Skip to main content

FacebookMessage

A message sent to or received from Facebook.

type FacebookMessage implements Message, Node {
attachments(
after: String
before: String
first: Int
last: Int
): AttachmentConnection
author: Author
body: String
bodyPlainText: String
cannedReply: CannedReply
channel: Channel!
createdAt: DateTime!
editedAt: DateTime
facebookId: String
fromMerge: Boolean
fromMove: Boolean
id: ID!
isNote: Boolean!
rule: Rule
sourceConversation: Conversation
summary: SummaryMessage!
updatedAt: DateTime!
}

Fields

FacebookMessage.attachments ● AttachmentConnection object common

The files attached to the message, if any.

FacebookMessage.attachments.after ● String scalar common

Returns the elements in the list that come after the specified cursor.

FacebookMessage.attachments.before ● String scalar common

Returns the elements in the list that come before the specified cursor.

FacebookMessage.attachments.first ● Int scalar common

Returns the first n elements from the list.

FacebookMessage.attachments.last ● Int scalar common

Returns the last n elements from the list.

FacebookMessage.author ● Author union common

The actor that authored the body.

FacebookMessage.body ● String scalar common

The body of the message in HTML.

FacebookMessage.bodyPlainText ● String scalar common

The body of the message in plain text.

FacebookMessage.cannedReply ● CannedReply object common

The canned reply used for this message.

FacebookMessage.channel ● Channel! non-null interface common

The channel this message belongs to

FacebookMessage.createdAt ● DateTime! non-null scalar common

The date and time that the object was created.

FacebookMessage.editedAt ● DateTime scalar common

The date and time that the object was last updated.

FacebookMessage.facebookId ● String scalar common

The external Facebook ID of the messsage.

FacebookMessage.fromMerge ● Boolean scalar common

True if the message comes from a merged conversation; false otherwise.

FacebookMessage.fromMove ● Boolean scalar common

True if the message was moved from another conversation; false otherwise.

FacebookMessage.id ● ID! non-null scalar common

FacebookMessage.isNote ● Boolean! non-null scalar common

True if the message is a note; false otherwise.

FacebookMessage.rule ● Rule object common

The rule that caused this message to be created.

FacebookMessage.sourceConversation ● Conversation interface common

The conversation the message was moved from.

FacebookMessage.summary ● SummaryMessage! non-null object common

The summary of the message.

FacebookMessage.updatedAt ● DateTime! non-null scalar common

The date and time that the object was last updated.

Interfaces

Message interface common

An individual message, for example an incoming email, an email reply, or a note.

Node interface common

An object with an ID.

Implemented by

ChangeTypeUnion union