永久菜单未显示在 Facebook Messenger 聊天机器人中
Persistent menu not showing in Facebook Messenger chat bot
As I don't know why suggested, using Postman.
Per docs,已成功将配置发布到 facebook API:
无论如何都不应该是 . Even
Localization: Developers can now provide text in multiple languages (or entirely different menus) for each local your bot's users may come from.
到目前为止my brother, I have tried almost everything喜欢
This looks like some crazy bug。是否有一些变通方法可以添加最简单的永久菜单?
在这个问题上浪费了 2 个小时。直到我意识到你必须删除对话然后用忽略缓存刷新 facebook(chrome 中的 ctrl+shift+r)然后它会显示。
FB API document 声明要将持久菜单应用到页面特定机器人的 API link 是:
https://graph.facebook.com/v2.6/me/messenger_profile?access_token=<PAGE_ACCESS_TOKEN>
请注意版本号后的 me,即本例中的 v2.6
。然而,this did not worked for a lot of people
在 API link 中有小的变化:
graph.facebook.com/v2.6/Page ID/messenger_profile?access_token=PAGE ACCESS TOKEN
请注意,me 已替换为 fb 页面 ID。
并且示例负载仍然相同:
{
"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/"
}
]
}
]
}
]
}
请注意,在设置 persistent_menu
之前必须配置 get_started
按钮。
As I don't know why suggested, using Postman.
Per docs,已成功将配置发布到 facebook API:
无论如何都不应该是
Localization: Developers can now provide text in multiple languages (or entirely different menus) for each local your bot's users may come from.
到目前为止my brother, I have tried almost everything喜欢
This looks like some crazy bug。是否有一些变通方法可以添加最简单的永久菜单?
在这个问题上浪费了 2 个小时。直到我意识到你必须删除对话然后用忽略缓存刷新 facebook(chrome 中的 ctrl+shift+r)然后它会显示。
FB API document 声明要将持久菜单应用到页面特定机器人的 API link 是:
https://graph.facebook.com/v2.6/me/messenger_profile?access_token=<PAGE_ACCESS_TOKEN>
请注意版本号后的 me,即本例中的 v2.6
。然而,this did not worked for a lot of people
在 API link 中有小的变化:
graph.facebook.com/v2.6/Page ID/messenger_profile?access_token=PAGE ACCESS TOKEN
请注意,me 已替换为 fb 页面 ID。
并且示例负载仍然相同:
{
"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/"
}
]
}
]
}
]
}
请注意,在设置 persistent_menu
之前必须配置 get_started
按钮。