Actions23
- Message Actions
- Image Actions
- Audio Actions
- Video Actions
- User Profile Actions
- Sender Action Actions
- Comment Actions
- Page Actions
Message → Send Question with Buttons
AI-generatedSummary
Send a message with quick reply buttons to a specific Facebook user by their ID, including a question prompt and up to 13 customizable buttons with optional images.
Inputs
- User's ID (required) — The Facebook user ID to whom the message will be sent.
- Question (required) — The question text to present to the user in the message.
- Quick Replies (required) — A collection of quick reply buttons (up to 13), each with a title, payload, and optional image URL, which the user can click to respond.
Output shape
a list containing the Facebook API response objects for each message sent
Each API response corresponds to sending one message with quick replies to the specified user. The operation may fail if more than 13 quick reply buttons are provided or if the Facebook API returns an error. Errors are returned as JSON with descriptive messages if 'continueOnFail' is enabled.
Examples
Example 1: Ask a user a question with quick reply buttons, such as choosing a color preference.
Set the 'User's ID' to the recipient's Facebook user ID, specify the 'Question' as "Which color do you prefer?", and define up to 13 quick reply buttons with titles like 'Red', 'Blue', and 'Green', each providing distinct payloads and optionally image URLs.
