blopa / Magento-Chatbot

Magento Chatbot Integration with Telegram, Messenger, Whatsapp, WeChat, Skype and wit.ai.
MIT License
176 stars 62 forks source link

Match challenge issue with Facebook #83

Closed fayyazgt closed 6 years ago

fayyazgt commented 7 years ago

I have installed your module, created facebook dev account and application, copied Facebook page's token and pasted in the module's facebook configuration section. Please have a look:

image

Also, I have entered the custom key:

image

Next, I have successfully accessed to the below URL:

https://codeinlabs.com/chatbot/chatdata/facebook/webhook/fayyaz123

image

It is showing to copy call back URL and verify token to the facebook webhook. But when I paste the information as mentioned earlier on facebook messenger webhook, it gives me the below error:

The URL couldn't be validated. Response does not match challenge, expected value=

Please see the screenshot as well:

image

I am using Magento v1.9.3.6 with PHP v5.6 and MySQL v5.6. Do you have any solution for it?

blopa commented 7 years ago

Hello @fayyazgt. First of all, thanks for using our module.

I got many issues requests about the Facebook Challenge Hub. This was hard to code because I needed to create a "pure text" page with no HTML tags.

Some modules add blocks to all Magento pages and it may overwrite the webhook URL, which must NOT contain any blocks. Try looking for these blocks and exclude the itby adding <remove name="BLOCK_NAME" /> at Magento-Root/app/design/frontend/base/default/layout/werules_chatbot.xml

You should also check the URL like in this https://github.com/blopa/Magento-Chatbot/issues/60#issuecomment-312519644

Please try that and let me know.