I'm trying to send a message from my app to a user using the Send API. I have the user_id from reading the userId when a message was sent to the page.
However, when I try to send a message using the Send API I get the error:
Failed calling Send API 400 Bad Request { message: '(#100) No matching user
found',
type: 'OAuthException',
code: 100,
error_subcode: 2018001,
fbtrace_id: 'GmBQFOIlkFS' }
I saw on this link that a lot of these errors might be because "the page scoped ID does not belong to the app used for this request."
The problem is that I'm not quite sure what that means.
I thought it might be because my webhook is on my website, but I was trying to send from localhost:3000. But then whether I tried sending it from my local server or from the server online, I get the same error code.