watson-developer-cloud / botkit-middleware

A middleware to connect Watson Conversation Service to different chat channels using Botkit
https://www.npmjs.com/package/botkit-middleware-watson
Apache License 2.0
206 stars 254 forks source link

Error: Could not verify message was sent by facebook #84

Closed jerinsj closed 7 years ago

jerinsj commented 7 years ago

Was able to setup webhook, facebook bot is live but when I sent a message to the bot this is what I see. Any idea how to resolve this issue? capture

mitchmason commented 7 years ago

Are you running this locally? Did you set up local tunnel and point it at port 5000? Im not super familiar with all of botkits error codes, so just covering the basics first.

jerinsj commented 7 years ago

Yes I am running this locally and yes local tunnel was set up port 5000.... as shown in the picture the client server is listening on port 5000, webhook was set up and it even said the hub.verify token but when I try to message the bot it doesn't reply instead the error in the picture is what I see...

jerinsj commented 7 years ago

I followed as shown here in this youtube video https://www.youtube.com/watch?v=FdsjS7ZnPLw&t=406s except instead of using the car bot example I used my own...

mitchmason commented 7 years ago

I'm not sure who that is that made that video, but I'm sure we can work this out. My next best guess would be that your verify token is not matching, hence why the error says 'cannot verify coming from facebook' so that seems like a logical place to double check. Make sure your app secret, verification token, and access token are all correct.

germanattanasio commented 7 years ago

Closed due to inactivity. Feel free to open if this is still an issue.

ehaynie63 commented 7 years ago

I am having the exact same issue. Already double checked the verify token, secret key etc. I have a feeling the video we watched may have skipped some of the first steps..