Facebook Messenger Bot 无法响应

Facebook Messenger Bot fails to respond

我们刚刚获得了机器人的批准,在第一次 Beta 测试期间,我注意到该机器人没有响应某些特定用户。 问题似乎是信使提供的用户 ID。 当尝试使用发送 api 时,我们得到 (#100) No matching user found 。 我在 facebook 上找到了一个帖子,但这似乎特别与测试用户有关。 (Link for same) 有没有其他人经历过这种行为? 对于大多数用户来说一切正常。

看看这个问题https://developers.facebook.com/bugs/578746852290927/

We decided to switch our encoding to use strings instead of ints for user & page IDs and the change will be pushed next Tuesday. You can use json-bigint JSON parser as a workaround until then.

我的问题是

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

dict_to_send = { 'message': {'text': u'hello FB'}, 'recipient': {'id': <strong>'<em>sender_id_here</em>'</strong>} } res = requests.post("<a href="https://graph.facebook.com/v2.6/me/messages?access_token=your_token_here" rel="nofollow">https://graph.facebook.com/v2.6/me/messages?access_token=your_token_here</a>", <br>data=json.dumps(dict_to_send), headers = {'content-type':'application/json'})