Charca / bootbot

Facebook Messenger Bot Framework for Node.js
MIT License
974 stars 253 forks source link

No matching user found? #109

Closed danielnjoo closed 6 years ago

danielnjoo commented 6 years ago

Creating a hello world app with this package (have made others before), and currently am receiving responses, but am unable to send replies, via chat.say()?

bot.hear('hi', (payload, chat) => {
  console.log('message received')
  chat.say('hello');
});

Any tips?

mraaroncruz commented 6 years ago

It sounds like you're sending replies to the wrong page. Make sure your access token is set to the correct page. User ID's are not facebook ids, they are scoped to the page. So you may be sending messages to user ids for the wrong page and this is how facebook would respond.

danielnjoo commented 6 years ago

Thanks! I had the wrong page access token (too many pages / apps)... was testing for a workshop that I'm running.

mraaroncruz commented 6 years ago

I knew where to look because I have had the same issue a few times ;)

I'm glad it worked for you!