Open ihavenonickname opened 6 years ago
Check your app ID and page token. Make sure they're not null and correct for the correct page.
Hello!
I checked, they're equal on both machines.
Just to be clear, bot.on('message')
works on both machines, while bot.say
only works on one of them (my local machine).
It sounds like a facebook page token issue. Are you sure that the page tokens match the app you are expecting to use?
User ID's are page scoped so this sounds like you are trying to send to a user that is connected to a different page. So FB's like "Who is this?"
I can almost guarantee that your facebook page token is incorrect.
This call:
Results in the following error:
The
user_id
parameter is thepayload.sender.id
frombot.on('message')
callback.What bugs me is that it works on my local machine, however it doesn't on my remote server, even using the very same
user_id
in both machines.Any hints?