Send Button Message
Facebook
Facebook
Send Button Message
Send a Messenger message with text and up to 3 action buttons (a button template) from a Page to a user. Buttons can open a URL or send a postback payload back to your flow. Subject to the 24-hour messaging window.
Action
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
page_id | dropdown | Required | The Facebook Page to send the message from. |
recipient_id | text | Required | The recipient's Page-scoped ID (PSID). |
message | text | Required | The text shown above the buttons. |
buttons | array of object | Required | The action buttons (1-3). Each is a URL button or a postback button. |
type | select | Optional | Button type. (options: Open URL, Postback) |
title | text | Optional | Button label (max 20 characters). |
url | text | Optional | For a URL button: the URL to open when tapped. |
payload | text | Optional | For a postback button: the payload delivered to your 'Wait for Postback' trigger when tapped. |
messaging_type | select | Optional | Messaging type: RESPONSE (default), UPDATE, or MESSAGE_TAG. (options: Response, Update, Message Tag) |
sender_action | text | Optional | Optional sender action, e.g. mark_seen, typing_on, typing_off. |
Outputs
| Name | Type | Description |
|---|---|---|
statusCode | number | HTTP status code from the Graph API response. |
body | object | Graph API response. |
recipient_id | text | The recipient PSID. |
message_id | text | The id of the sent message. |