Skip to content

Send Card Message

Facebook

Facebook

Send Card Message

Send a Messenger card message (generic template) from a Page to a user — one card, or a horizontally scrollable carousel of up to 10 cards. Each card has a title and optional subtitle, image, tap action, and up to 3 buttons. 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).
elementsarray of objectRequiredThe cards to send (1-10). Multiple cards render as a carousel.
titletextRequiredCard title (max 80 characters).
subtitletextOptionalOptional card subtitle (max 80 characters).
image_urltextOptionalOptional image URL shown at the top of the card.
default_action_urltextOptionalOptional URL opened when the card itself is tapped.
buttonsarray of objectOptionalOptional action buttons on the card (max 3). Each item is an object with fields: type, title, url, payload.
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.