Persistent menu not showing in Facebook Messenger chat chat
As I don't know why this was suggested using Postman.
In the docs , have successfully done configuring facebook APIs:
which doesn't have to be locale specific anyway . Even I can't see here
Localization: Developers can now provide text in multiple languages (or completely different menus) for each local user that bot users can emerge from.
Like my brother , I've tried almost everything so far
This looks like a crazy mistake . Is there any work to do to add the simplest permanent menu?
source to share
The FB API document states that the API reference used to apply persistent menus to a bot page is this:
https://graph.facebook.com/v2.6/me/messenger_profile?access_token=<PAGE_ACCESS_TOKEN>
Notice me after the ie version number v2.6
in this particular case. However, this did not work for many people
There is a small change in the API link:
graph.facebook.com/v2.6/ Page id / messenger_profile? access_token = PAGE ACCESS TOKEN
Note that me is replaced with the page id fb.
And the sample payload can be the same:
{
"get_started": {
"payload": "Get started"
},
"persistent_menu": [
{
"locale": "default",
"composer_input_disabled": false,
"call_to_actions": [
{
"title": "Stop notifications",
"type": "nested",
"call_to_actions": [
{
"title": "For 1 week",
"type": "postback",
"payload": "For_1_week"
},
{
"title": "For 1 month",
"type": "postback",
"payload": "For_1_month"
},
{
"title": "For 1 year",
"type": "postback",
"payload": "For_1_year"
}
]
},
{
"title": "fresh jobs",
"type": "postback",
"payload": "fresh jobs"
},
{
"title": "More",
"type": "nested",
"call_to_actions": [
{
"title": "like us",
"type": "web_url",
"url": "https://www.facebook.com/nordible/"
},
{
"title": "blog",
"type": "web_url",
"url": "http://xameeramir.github.io/"
}
]
}
]
}
]
}
Please note that the persistent_menu
button must be configured before setting get_started
.
source to share