jgorset / facebook-messenger

Definitely the best way to make Bots on Facebook Messenger with Ruby
MIT License
962 stars 211 forks source link

The URL couldn't be validated. Response does not match challenge, expected value="1158435612", received="Error; wrong verify ..." #168

Closed prdpspkt closed 7 years ago

prdpspkt commented 7 years ago

When I try to add webhooks in app page. This throws above error. But I have entered correct vefiy_token in both app and facebook webhook setup page. What might be the problem. VERIFY_TOKEN: 'ramro-sathi-varification-code' image

lbain commented 7 years ago

Hi @prdpspkt - I had this difficulty as well. It turns out that facebook-messenger requires that the validation code env variable is named VERIFY_TOKEN. They have some code that references it, and it is not configurable. Once I changed my env variable from facebook_verify_token to VERIFY_TOKEN I was able to get the validation to pass.

jgorset commented 7 years ago

That's right, @lbain! You can make it to use something else (either a different environment variable or another source of configuration altogether) by implementing a different configuration provider, but the default configuration provider looks to VERIFY_TOKEN, APP_SECRET and APP_TOKEN.

sirasao2 commented 6 years ago

https://x-team.com/blog/how-to-get-started-with-facebook-messenger-bots/

This is great for help.

ClauTrejo commented 6 years ago

Hi, You can solve this problem checking Facebook credentials from app.js and web hook. Also, I made sure the workspace URL "url: 'https://gateway.watsonplatform.net/assistant/api'," it has to be the same as my workspace, it didn't say it in the manual

Claudia Trejo

tpriyanshu90 commented 6 years ago

Hi, I encountered a similar issue: Here is the solution : firstly turnoff your server, type in your verify_token in the main file. Then restart the server. NOw type that verify token in the webhook. It's done. cheers

Mattw11486 commented 2 years ago

Can someone help with this? I too am getting this error I have done all of the suggestions in the forum and nothing helps image image