The booking button triggers the appointment booking flow. Before using this button type, set up appointments for your Facebook Page.
For more information on using the booking button, see Booking Button.
{
"type": "booking"
}
curl -X POST -H "Content-Type: application/json" -d '{
"recipient": {
"id": "<PSID>"
},
"message": {
"attachment": {
"type": "template",
"payload": {
"template_type": "button",
"text": "Try the booking button!",
"buttons": [
{
"type": "booking"
}
]
}
}
}
}' "https://graph.facebook.com/v16.0/me/messages?access_token=<PAGE_ACCESS_TOKEN>"
Property | Type | Description |
---|---|---|
| String | Must be |