The PageMessages endpoint allows your business to send a message to a customer from your Facebook Page in response to a message received from the customer.
messages
edge from the following paths: Parameter | Description |
---|---|
message Object | Message data Supports Emoji |
messaging_type enum {RESPONSE, UPDATE, MESSAGE_TAG, UTILITY} | Messaging type of the message |
notification_type enum {REGULAR, SILENT_PUSH, NO_PUSH} | Default value: REGULAR Push notification / buzz type |
payload string | payload Supports Emoji |
persona_id numeric string | The ID of a Persona |
recipient Object | The recipient of the message Required |
reply_to string | reply_to |
sender_action enum {MARK_SEEN, TYPING_ON, TYPING_OFF, REACT, UNREACT} | Actions such as setting / unsetting typing indicators |
tag Message tag | The use case tag of the message to bypass the subscriptions permission check |
thread_control Object | thread_control |
thread_key
: string, recipient_id
: string, message_id
: string, attachment_id
: string, Error | Description |
---|---|
551 | This person isn't available right now. |
100 | Invalid parameter |
2022 | The ability to send commerce messages has been temporarily disabled for this application. |
613 | Calls to this api have exceeded the rate limit. |
10903 | This user cant reply to this activity |
368 | The action attempted has been deemed abusive or is otherwise disallowed |
190 | Invalid OAuth 2.0 Access Token |
10900 | Activity already replied to |
200 | Permissions error |
230 | Permissions disallow message to user |
messages
edge from the following paths: Parameter | Description |
---|---|
message Object | Information about the message including the message ID, type, and contents Supports Emoji |
messaging_type enum {RESPONSE, UPDATE, MESSAGE_TAG, UTILITY} | The type of message you are sending.
|
notification_type enum {REGULAR, SILENT_PUSH, NO_PUSH} | Default value: REGULAR The type of push notification the customer receives when your message is delivered |
payload string | Payload of the sender action Supports Emoji |
persona_id numeric string | The ID for your business persona |
recipient Object | The customer receiving your message. An example object is Required |
reply_to string | Information of the specific existing message in the thread that you want to send a reply to. |
sender_action enum {MARK_SEEN, TYPING_ON, TYPING_OFF, REACT, UNREACT} | The action displayed to a customer to let the customer know that you have seen and are processing their message.
|
tag Message tag | A tag to allow your app to send a personalized message to a customer outside the 24-hour messaging window.
Only |
recipient_id
: string, message_id
: string, attachment_id
: string, Error | Description |
---|---|
551 | This person isn't available right now. |
100 | Invalid parameter |
2022 | The ability to send commerce messages has been temporarily disabled for this application. |
613 | Calls to this api have exceeded the rate limit. |
10903 | This user cant reply to this activity |
368 | The action attempted has been deemed abusive or is otherwise disallowed |
190 | Invalid OAuth 2.0 Access Token |
10900 | Activity already replied to |
200 | Permissions error |
230 | Permissions disallow message to user |