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_id | dropdown | Required | The Facebook Page to send the message from. |
recipient_id | text | Required | The recipient's Page-scoped ID (PSID). |
elements | array of object | Required | The cards to send (1-10). Multiple cards render as a carousel. |
title | text | Required | Card title (max 80 characters). |
subtitle | text | Optional | Optional card subtitle (max 80 characters). |
image_url | text | Optional | Optional image URL shown at the top of the card. |
default_action_url | text | Optional | Optional URL opened when the card itself is tapped. |
buttons | array of object | Optional | Optional action buttons on the card (max 3). Each item is an object with fields: type, title, url, payload. |
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. |