Postback Button Reference

When the postback button is tapped, the Messenger Platform sends an event to your postback webhook. This is useful when you want to invoke an action in your bot. This button can be used with the Button Template and Generic Template.

For more information on using the postback button, see Postback Button.

Contents

Example

...

"buttons":[
  {
    "type":"postback",
    "title":"Bookmark Item",
    "payload":"DEVELOPER_DEFINED_PAYLOAD"
  }
]

...

Example Response

{
  "recipient_id": "1254477777772919",
  "message_id": "mid.$cAAJsujCd2ORj_1qmrFdzhVa-4cvO"
}  

Properties

Property Type Description

type

String

Type of button. Must be postback.

title

String

Button title. 20 character limit.

payload

String

This data will be sent back to your webhook. 1000 character limit.