【问题标题】:OAuth "Facebook Platform" "invalid_request" "(#100) Parameter error: You cannot send messages to this id"OAuth "Facebook Platform" "invalid_request" "(#100) 参数错误:您无法向此 id 发送消息"
【发布时间】:2017-10-26 18:53:18
【问题描述】:

如何解决

"Facebook Platform" "invalid_request" "(#100) 参数错误:你不能向这个id发送消息"

你有什么想法吗??

我尝试使用 NET 发送 POST,参数为

https://graph.facebook.com/v2.6/{my_page}/messages?access_token={我的访问令牌} 和正文请求我以 Json 形式设置消息文本和收件人 ID

我在网络上为应用获取的 id 是朋友的 id,但已经进行了交互

缺少什么?

【问题讨论】:

  • 嘿,我遇到了完全相同的问题。找到解决方案了吗?

标签: c# api facebook-graph-api post


【解决方案1】:

同样的问题,“Facebook 平台”“invalid_request”“(#100)参数错误:您无法向此 id 发送消息”

我猜如果 ID 是 url 中的数字:https://www.facebook.com/profile.php?id=100010603771535

【讨论】:

    【解决方案2】:

    您应该使用 PSID 而不是用户的“默认/正常”ID。 PSID 可以从 messenger 扩展中检索(我不知道是否可以在不连接机器人的情况下从 Graph API 中检索它 - 请在 cmets 中回答)。

    查看以下链接了解更多信息。 https://developers.facebook.com/docs/messenger-platform/reference/send-api https://developers.facebook.com/docs/messenger-platform/identity/id-matching/

    【讨论】:

      猜你喜欢
      • 2012-06-29
      • 2013-04-12
      • 2023-04-05
      • 2021-05-29
      • 2019-08-01
      • 1970-01-01
      • 2011-11-09
      • 2016-10-24
      • 1970-01-01
      相关资源
      最近更新 更多