Booking Button Reference

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.

Contents

Booking Button Syntax

{
  "type": "booking"
}

Example Usage

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>"

Properties

Property Type Description

type

String

Must be booking