blopa/Magento-Chatbot

Webhook URL not generating

smtpstn opened this issue · 15 comments

Hello,

I have setup your extension for Facebook Chat Bot. I have filled all the information. Now I am facing problem in accessing the url with custom key.

When I try to hit https://www.techgetgo.com/chatbot/chatdata/facebook/key/4574er5ehiy/ I receive the following message.

To configure Facebook webhook access https://developers.facebook.com/apps/(FACEBOOK_APP_ID)/webhooks/ and set the webhook URL as https://www.techgetgo.com/chatbot/chatdata/facebook/key/4574er5ehiy/

After this when I go to FB developer interface and try to setup the webhook URL I receive the error message. Please check the screenshot below.

fbb

Now please tell me which configuration I am missing.

Thanks

blopa commented

Hello smtpstn,

I'm really sorry about this. I'm working in a better documentation for this extension. Your verify token must be the same as you custom key, so in this case must be "4574er5ehiy". I didn't thought it was necessary to have multiple keys for multiple purposes, that's why I simplify by using this one "custom key".

Could you try that and let me know?

Best.

Hello,

Thanks for the quick response.

I have changed my verify token to my custom key now WebHook is setup on Facebook. Please check the below SS:
ff

But still I am getting the same message To configure Facebook webhook access https://developers.facebook.com/apps/(FACEBOOK_APP_ID)/webhooks/ and set the webhook URL as https://www.techgetgo.com/chatbot/chatdata/facebook/key/4574er5ehiy/ When I am trying to access the URL: https://www.techgetgo.com/chatbot/chatdata/facebook/webhook/4574er5ehiy/

Can you please let me know where I can access the chatbot? I am not able to find any option where a user can access the chatbot? Also Is this chatbot can be accessed by a login user? OR anyone can use it?

If you guide me it would be great help for me.

Thanks.

blopa commented

Hello!

Alright, here we go.

Q: Can you please let me know where I can access the chatbot? I am not able to find any option where a user can access the chatbot?
A: Your bot is available on Facebook chat, I guess that your bot is this one http://m.me/1441695065863926/, right?

Q: Also Is this chatbot can be accessed by a login user? OR anyone can use it?
A: This bot is only available for users logged on Facebook. But you can also setup a bot for Telegram aswell.

Best.

Hello,

Thanks for providing the answers. I have tried by messaging to this bot but didn't received any auto reply.

Also How can I setup on my website so customer can directly interact with this.? Can I setup it as a Facebook Live chat support? Something like this: https://marketplace.magento.com/yosto-module-facebook-messenger.html ?

I mean How our website user get to know about this functionality. If you can help me It will be appreciated.

In waiting of your quick response.

Thanks

blopa commented

Hello smtpstn,

I think that maybe you're missing some configuration on Facebook Developer website. My documentation is incomplete, I'll work on that the next weeks. Try following this tutorial starting from step #3: https://blog.hartleybrody.com/fb-messenger-bot/. You're probably missing the "Generate a Page Access Token" part.

As for the Facebook Live chat support, yeah, that would work.

Best.

blopa commented

Also, please be aware of step #7, because you'll need aproval from Facebook to use your bot to send messages to other users other than yourself.

Hello,

Thanks for quick response.

I have created the page access token. Please check the below screenshot:
imgpsh_fullsize

After that I have tried to message bot via my own account, Still it's not replying. :(

Can you please tell me If I have to use this page access token somewhere in magento to get bot work?

Thanks

blopa commented

Yes, you need to add this access token on the module backend configuration. Go to System > General Settings > Chatbot Settings

Please check this SS
https://raw.githubusercontent.com/blopa/Magento-Chatbot/master/screenshots/image_3.png

You'll have a lot to configure there, including commands code, enable/disable features, and many other things. This part is kind of documented on here: https://github.com/blopa/Magento-Chatbot

Hello,
Thanks for quick response.

Please check below screenshot. Should I insert my page access token in this filed?

fbm

blopa commented

Yes, that's it 😄

I'm sorry about that. I'll change the text of this input and add better documentation.

Best

Hello,

I have added my access token to that field. Still no reply from bot :(
fbt

blopa commented

Can you send a SS of all your configuration for this module?

Hello,

Please check below SS:

fbms
ge

blopa commented

That's weird. It should work. The problem is probably on Facebook Developer backend.

Try checking other tutorials, or make another page just for testing, and follow that tutorial from step #2

blopa commented

I'm gonna close this for now. If you have any other problems, please let us know!