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 |
|---|---|
messageObject | Message data Supports Emoji |
messaging_typeenum {RESPONSE, UPDATE, MESSAGE_TAG, UTILITY} | Messaging type of the message |
notification_typeenum {REGULAR, SILENT_PUSH, NO_PUSH} | Default value: REGULARPush notification / buzz type |
payloadstring | payload Supports Emoji |
persona_idnumeric string | The ID of a Persona |
recipientObject | The recipient of the message Required |
reply_toObject | reply_to |
sender_actionenum {MARK_SEEN, TYPING_ON, TYPING_OFF, REACT, UNREACT} | Actions such as setting / unsetting typing indicators |
tagMessage tag | The use case tag of the message to bypass the subscriptions permission check |
thread_controlObject | thread_control |
thread_key: string, recipient_id: string, message_id: string, attachment_id: string, gchat_space_name: 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 |
| 10904 | The page has messages disabled in the settings |
messages edge from the following paths: | Parameter | Description |
|---|---|
messageObject | Information about the message including the message ID, type, and contents Supports Emoji |
messaging_typeenum {RESPONSE, UPDATE, MESSAGE_TAG, UTILITY} | The type of message you are sending.
|
notification_typeenum {REGULAR, SILENT_PUSH, NO_PUSH} | Default value: REGULARThe type of push notification the customer receives when your message is delivered |
payloadstring | Payload of the sender action Supports Emoji |
persona_idnumeric string | The ID for your business persona |
recipientObject | The customer receiving your message. An example object is Required |
reply_toObject | Information of the specific existing message in the thread that you want to send a reply to. |
sender_actionenum {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.
|
tagMessage 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 |
| 10904 | The page has messages disabled in the settings |