Messenger 永久菜单不可见
Messenger persistent menu not visible
我目前正在开发 Facebook Messenger 机器人。但是,我无法将永久菜单附加到它。
我阅读了要求here:
The user must be on Messenger v106 or above on iOS or Android.
The page the bot is attached to must be published.
The bot must be set to "public" in the developer console.
The bot must have passed the approval process for pages_messaging permission
所有这些都满足了。
当我设置菜单时,我收到来自 Facebook 的反馈:
Array
(
[result] => success
)
但是,它仍然没有显示在我的 Android 设备上,也没有显示在网络 Facebook 上。我删除了对话,重新进入了几次,都没有成功。
顺便说一下,我正在使用 this lib 作为图表 api,以防万一。
好的,重点是您必须为每个区域设置发送一系列菜单,但奇怪的是,如果您的请求错误,Facebook 不会发出警告
Xameeramir,我的意思是这样的。请注意每个区域设置的菜单有何不同。
curl -X POST -H "Content-Type: application/json" -d '{
"persistent_menu":[
{
"locale":"default",
"composer_input_disabled":true,
"call_to_actions":[
{
"title":"My Account",
"type":"nested",
"call_to_actions":[
{
"title":"Pay Bill",
"type":"postback",
"payload":"PAYBILL_PAYLOAD"
},
{
"title":"History",
"type":"postback",
"payload":"HISTORY_PAYLOAD"
},
{
"title":"Contact Info",
"type":"postback",
"payload":"CONTACT_INFO_PAYLOAD"
}
]
},
{
"type":"web_url",
"title":"Latest News",
"url":"http://petershats.parseapp.com/hat-news",
"webview_height_ratio":"full"
}
]
},
{
"locale":"zh_CN",
"composer_input_disabled":false
}
]
}' "https://graph.facebook.com/v2.6/me/messenger_profile?access_token=YOUR_ACCESS_TOKEN_HERE"
我目前正在开发 Facebook Messenger 机器人。但是,我无法将永久菜单附加到它。
我阅读了要求here:
The user must be on Messenger v106 or above on iOS or Android. The page the bot is attached to must be published. The bot must be set to "public" in the developer console. The bot must have passed the approval process for pages_messaging permission
所有这些都满足了。
当我设置菜单时,我收到来自 Facebook 的反馈:
Array
(
[result] => success
)
但是,它仍然没有显示在我的 Android 设备上,也没有显示在网络 Facebook 上。我删除了对话,重新进入了几次,都没有成功。
顺便说一下,我正在使用 this lib 作为图表 api,以防万一。
好的,重点是您必须为每个区域设置发送一系列菜单,但奇怪的是,如果您的请求错误,Facebook 不会发出警告
Xameeramir,我的意思是这样的。请注意每个区域设置的菜单有何不同。
curl -X POST -H "Content-Type: application/json" -d '{
"persistent_menu":[
{
"locale":"default",
"composer_input_disabled":true,
"call_to_actions":[
{
"title":"My Account",
"type":"nested",
"call_to_actions":[
{
"title":"Pay Bill",
"type":"postback",
"payload":"PAYBILL_PAYLOAD"
},
{
"title":"History",
"type":"postback",
"payload":"HISTORY_PAYLOAD"
},
{
"title":"Contact Info",
"type":"postback",
"payload":"CONTACT_INFO_PAYLOAD"
}
]
},
{
"type":"web_url",
"title":"Latest News",
"url":"http://petershats.parseapp.com/hat-news",
"webview_height_ratio":"full"
}
]
},
{
"locale":"zh_CN",
"composer_input_disabled":false
}
]
}' "https://graph.facebook.com/v2.6/me/messenger_profile?access_token=YOUR_ACCESS_TOKEN_HERE"