35

我提交了我的 facebook messenger bot 进行应用审核,拒绝原因是“没有收到回复”。

我已经从我自己的帐户和我添加到我的 Facebook 应用程序进行测试的其他一些测试人员测试了我的机器人。但是,当我尝试使用默认值进行测试时,Open Graph Test User我没有得到任何响应。发送消息 API 失败并出现错误:

{"error": {"message":"(#100) No matching user found", "type":"OAuthException", ...}}

我在这里做错了什么?如何使用发送/接收消息 API 向测试用户发送消息?

4

4 回答 4

15

我遇到了同样的问题,并在 facebook 开发者社区中得到了回复。似乎已确认错误: https ://developers.facebook.com/bugs/230322797329131/?hc_location=ufi

更新:它现在似乎工作了。从本周星期二开始,我可以看到审阅者向机器人发送消息并在页面的消息中获得响应。

于 2016-04-27T20:36:07.283 回答
6

我的问题是

我在我的 json 数据中发送收件人 ID 而不是 发件人 ID 。

dict_to_send = {
   'message': {'text': u'hello FB'},
   'recipient': {'id': **'*sender_id_here*'**}
}
res = requests.post("https://graph.facebook.com/v2.6/me/messages?access_token=your_token_here", <br>data=json.dumps(dict_to_send), headers = {'content-type':'application/json'})
于 2016-07-08T11:56:13.933 回答
0

FB 应用程序 webhook 应仅订阅以下事件:

  • 消息
  • 消息回发

订阅其他事件之一可能会引发该异常。

来源: https ://developers.facebook.com/bugs/578746852290927/?hc_location=ufi

于 2017-10-30T16:02:18.060 回答
-6

下面的答案:

1) 你不应该在没有测试你的东西是否有效的情况下提交 App Review。

2) 我猜你使用了测试用户界面中的用户 ID。如果您更仔细地阅读文档,您会发现用于 Messenger 平台的用户 ID 与您从 Facebook 登录获得的用户 ID 不同(这是测试用户界面显示的内容)。阅读https://developers.facebook.com/docs/messenger-platform/implementation#send_message下的“发送/接收 API”部分

于 2016-04-28T17:00:03.573 回答