设置完成后,无法为Facebook chatbot设置问候消息或“开始使用”按钮 [英] Cant set greeting message or 'Get Started' button for facebook chatbot after once set

查看:97
本文介绍了设置完成后,无法为Facebook chatbot设置问候消息或“开始使用”按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编辑FB Chatbot的Greeting消息,命令执行成功,但欢迎消息未更改。

I am trying to edit the Greeting message for my FB Chatbot, the commands are resulting success but the welcome message does not change.

此外,还可以使用Get Started按钮。 :我可以第一次成功设置它,但是删除一次后,即使命令每次都成功执行,按钮也不会出现。

Also, the Get Started button: i could set it successfully for the first time but after once deleting, button is not appearing even though the command results success everytime.

设置问候消息的代码:

curl -X POST -H "Content-Type: application/json" -d '{
  "setting_type":"greeting",
  "greeting":{
    "text":"Timeless apparel for the masses."
  }
}' "https://graph.facebook.com/v2.6/me/thread_settings?access_token=PAGE_ACCESS_TOKEN"   

用于删除问候消息

curl -X DELETE -H "Content-Type: application/json" -d '{
  "setting_type":"greeting"
}' "https://graph.facebook.com/v2.6/me/thread_settings?access_token=PAGE_ACCESS_TOKEN"

用于添加GetStarted Button

for adding GetStarted Button

curl -X POST -H "Content-Type: application/json" -d '{ 
  "get_started":{
    "payload":"GET_STARTED_PAYLOAD"
  }
}' "https://graph.facebook.com/v2.6/me/messenger_profile?access_token=PAGE_ACCESS_TOKEN"  

用于删除GetStarted按钮:

for deleting GetStarted button:

curl -X DELETE -H "Content-Type: application/json" -d '{
  "fields":[
    "get_started"
  ]
}' "https://graph.facebook.com/v2.6/me/messenger_profile?access_token=PAGE_ACCESS_TOKEN" 

我正在使用Terminal运行这些命令。

I am using Terminal to run these commands.

推荐答案

我可以解决它,我没有更新服务器上的页面访问令牌。因此,每次我更新问候消息但服务器正在与旧令牌通信时,facebook都可以返回成功。

I could solve it, I had not updated the page access token on the server. So, facebook could return success everytime i updated the greeting message but server was communicating with the old token.

然后,当服务器变旧时,为什么我仍然可以与我的聊天机器人聊天令牌。对我来说有点困惑。

Then why could i still chat with my chatbot when the server has old token. A bit confusing for me.

这篇关于设置完成后,无法为Facebook chatbot设置问候消息或“开始使用”按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆