Persistent Menu
The Persistent Menu is a menu that is always available to the user. This menu should contain top-level actions that users can enact at any point. Having a persistent menu easily communicates the basic capabilities of your bot for first-time and returning users.
The menu can be invoked by a user, by tapping on the 3-caret icon on the left of the composer.

Example
curl -X POST -H "Content-Type: application/json" -d '{
"setting_type" : "call_to_actions",
"thread_state" : "existing_thread",
"call_to_actions":[
{
"type":"postback",
"title":"Help",
"payload":"DEVELOPER_DEFINED_PAYLOAD_FOR_HELP"
},
{
"type":"postback",
"title":"Start a New Order",
"payload":"DEVELOPER_DEFINED_PAYLOAD_FOR_START_ORDER"
},
{
"type":"web_url",
"title":"Checkout",
"url":"http://petersapparel.parseapp.com/checkout",
"webview_height_ratio": "full",
"messenger_extensions": true
},
{
"type":"web_url",
"title":"View Website",
"url":"http://petersapparel.parseapp.com/"
}
]
}' "https://graph.facebook.com/v2.6/me/thread_settings?access_token=PAGE_ACCESS_TOKEN" Fields
| Property Name | Description | Required |
|---|---|---|
| Must be | Y |
| Must be | Y |
| Array of | Y |
call_to_actionsis limited to 5
Menus are loaded from cache but updates are fetched each time they're loaded. If you update the menu, trigger the fetch by loading it and then load it again to see your changes.
menu_item object
| Property Name | Description | Type | Required |
|---|---|---|---|
| Value is | String | Y |
| Button title | String | Y |
| For | String | Y, if type is |
| For | String | Y, if type is |
| Height of the Webview. Valid values: | Enum | N |
| Must be | Boolean | N |
titlehas a 30 character limitpayloadhas a 1000 character limit
Response
If the Persistent Menu was successfully set, you will get the following response:
{
"result": "Successfully added new_thread's CTAs"
} Delete
In order to delete the Persistent Menu send a DELETE request:
curl -X DELETE -H "Content-Type: application/json" -d '{
"setting_type":"call_to_actions",
"thread_state":"existing_thread"
}' "https://graph.facebook.com/v2.6/me/thread_settings?access_token=PAGE_ACCESS_TOKEN" 
