我需要从我的页面(我是管理员)向已经联系我的页面的用户发送私人消息
我对此链接的参考
https://developers.facebook.com/docs/messenger-platform/send-api-reference
我正在通过 Facebook Graph Explorer
https://developers.facebook.com/tools/explorer测试此功能
使用版本 V2.9
要求:
curl -X POST -H "Content-Type: application/json" -d '{
"recipient": {
"id": "USER_ID"
},
"message": {
"text": "hello, world!"
}
}' "https://graph.facebook.com/v2.6/me/messages?access_token=PAGE_ACCESS_TOKEN"
我用我的 id 和我是管理员的页面的访问令牌替换 USER_ID
但我的回应是:
{
"error": {
"message": "(#100) No matching user found",
"type": "OAuthException",
"code": 100,
"error_subcode": 2018001,
"fbtrace_id": "AeMT8VK2SbX"
}
}
我知道它需要特殊许可pages_messaging
,所以我正在使用 Facebook 应用程序Graph API Explorer
而不是我的应用程序测试此功能,因为尚未批准使用此许可
知道为什么我会收到此错误吗?