blopa/Magento-Chatbot

Match challenge issue with Facebook

fayyazgt opened this issue · 1 comments

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

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 #60 (comment)

Please try that and let me know.