持久菜单未在Facebook Messenger聊天机器人中显示

问题描述 投票:1回答:2

As I don't know why suggested, using Postman.

Per docs,已成功将配置发布到facebook API:

enter image description here

这不应该是反正locale specific。甚至I don't see here

本地化:开发人员现在可以为您的机器人用户可能来自的每个本地提供多种语言(或完全不同的菜单)的文本。

my brother一样,到目前为止我有tried almost everything

This looks like some crazy bug。是否有一些工作要添加一个最简单的持久性菜单?

facebook facebook-graph-api facebook-messenger messenger facebook-messenger-bot
2个回答
5
投票

在这个问题上浪费了2个小时。直到我意识到你必须删除对话然后用忽略缓存刷新facebook(ctrl + shift + r in chrome)然后它会显示。


0
投票

FB API document声明用于将持久性菜单应用于页面特定机器人的API链接是:

https://graph.facebook.com/v2.6/me/messenger_profile?access_token=<PAGE_ACCESS_TOKEN>

在这个特定情况下,请注意版本号后面的v2.6。但是,this did not worked for a lot of people

要点击的API链接有一些小变化:

graph.Facebook.com/V2.6/去AZ小说网POI/messenger_profile?access_token=去AZ小说网POI

请注意,我将替换为fb Page Id。

样本有效负载仍然可以是相同的:

Page ID

请注意,在设置PAGE ACCESS TOKEN之前必须配置{ "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/" } ] } ] } ] } 按钮。

© www.soinside.com 2019 - 2024. All rights reserved.