howdyai / botkit

Botkit is an open source developer tool for building chat bots, apps and custom integrations for major messaging platforms.
MIT License
11.48k stars 2.28k forks source link

Chatbot not responding - Facebook Messenger message.user is not correct #1612

Closed aidonsnous closed 5 years ago

aidonsnous commented 5 years ago

I was testing my platform and then I decided to delete the conversation that I had with my chatbot but after deleting the conversation I tried to access my information using message.user but found out later that it was not the same. So what I happens is if I delete conversation new id is being given which I can't even use with the facebook profile API, the profile API is returning the error saying the user does not exist.

The following link is the one I use to get other information concerning the user :

"https://graph.facebook.com/v2.6/" + this.fbId + "?fields=first_name,last_name,email,locale,profile_pic&access_token=" + process.env.page_token;

And the chatbot is no longer responding to me (Deleted conversation), it is giving the error :

An error occurred while sending a message: { message: '(#100) No matching user found',

How can I fix this problem that problem of message.user returning different id ?

aidonsnous commented 5 years ago

I have finally find the issue. It was the page token was not correct. I have fixed.