Facebook API send private message from page

3.6k views Asked by At

I need to send private message from my page (i am the admin) to user who already contacted my page

My reference on that this link https://developers.facebook.com/docs/messenger-platform/send-api-reference

I am testing this feature via Facebook Graph Explorer https://developers.facebook.com/tools/explorer

Using version V2.9

Request:

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"

i replace the USER_ID with my id and access token of page i am admin of

But my response is: { "error": { "message": "(#100) No matching user found", "type": "OAuthException", "code": 100, "error_subcode": 2018001, "fbtrace_id": "AeMT8VK2SbX" } }

I know it is required special permission pages_messaging so i am testing this feature using Facebook application Graph API Explorer not my application because it is not approved yet to use this permission

Any idea why i got this error ?

0

There are 0 answers