Call Button

The Call Button can be used to initiate a phone call. This button can be used with the Button and Generic Templates.

Implementation

When calling the Send API, set the button type to phone_number and the payload to the phone number.

    ...
    
    "buttons":[
       {
          "type":"phone_number",
          "title":"Call Representative",
          "payload":"+15105551234"
       }
    ]
    
    ...
  

buttons Fields

Property Name Description Type Required

type

Type of button. Must be phone_number.

String

Y

title

Button title, 20 character limit.

String

Y

payload

Format must have "+" prefix followed by the country code, area code and local number. For example, +16505551234.

String

Y

Example

curl -X POST -H "Content-Type: application/json" -d '{
  "recipient":{
    "id":"USER_ID"
  },
  "message":{
    "attachment":{
      "type":"template",
         "payload":{
            "template_type":"button",
            "text":"Need further assistance? Talk to a representative",
            "buttons":[
               {
                  "type":"phone_number",
                  "title":"Call Representative",
                  "payload":"+15105551234"
               }
            ]
         }
    }
  }
}' "https://graph.facebook.com/me/messages?access_token=PAGE_ACCESS_TOKEN"