【问题标题】:how to setup “Get started” button in facebook messenger bot如何在 facebook messenger bot 中设置“开始”按钮
【发布时间】:2020-06-03 17:07:52
【问题描述】:

我正在尝试使用邮递员 链接:https://graph.facebook.com/v6.0/me/messages?access_token=my_token

{ 
  "get_started":{
    "payload": "Hi, I am bot"
  }
}

在原始 JSON 正文中

但收到此回复

{
    "error": {
        "message": "(#100) Tried accessing nonexisting field (messages) on node type (Page)",
        "type": "OAuthException",
        "code": 100,
        "fbtrace_id": "AtFh2_fJ2sxkeU8k-2aNJGl"
    }
}

【问题讨论】:

标签: facebook api facebook-graph-api postman bots


【解决方案1】:

这里是如何放置开始按钮的小纲要,希望对您有所帮助: 使用邮递员:

  1. 首先通过选择 POST 请求来更改类型:(其中一个 感谢@misorude 解决了我的问题
  2. 定义对此 URL 的 Post 请求:
https://graph.facebook.com/v6.0/me/messenger_profile?access_token=<PAGE_ACCESS_TOKEN>

@misorude 从这里https://developers.facebook.com/docs/messenger-platform/reference/messenger-profile-api 注意到我的另一个问题检查端点

  1. 在身体部分:

。 粘贴此代码:

{ 
  "get_started":{
    "payload": "Hi, I am bot"
  }
}

附: 再次感谢您

【讨论】:

    猜你喜欢
    • 2017-06-07
    • 2016-10-29
    • 2017-02-05
    • 1970-01-01
    • 1970-01-01
    • 2017-05-06
    • 1970-01-01
    • 1970-01-01
    • 2016-10-05
    相关资源
    最近更新 更多