Skip to content

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_iddropdownRequiredThe Facebook Page to send the message from.
recipient_idtextRequiredThe recipient's Page-scoped ID (PSID).
messagetextRequiredThe text shown above the buttons.
buttonsarray of objectRequiredThe action buttons (1-3). Each is a URL button or a postback button.
typeselectOptionalButton type. (options: Open URL, Postback)
titletextOptionalButton label (max 20 characters).
urltextOptionalFor a URL button: the URL to open when tapped.
payloadtextOptionalFor a postback button: the payload delivered to your 'Wait for Postback' trigger when tapped.
messaging_typeselectOptionalMessaging type: RESPONSE (default), UPDATE, or MESSAGE_TAG. (options: Response, Update, Message Tag)
sender_actiontextOptionalOptional sender action, e.g. mark_seen, typing_on, typing_off.

Outputs

Name Type Description
statusCodenumberHTTP status code from the Graph API response.
bodyobjectGraph API response.
recipient_idtextThe recipient PSID.
message_idtextThe id of the sent message.