blopa / Magento-Chatbot

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

Webhook URL not generating #31

Closed smtpstn closed 7 years ago

smtpstn commented 7 years ago

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 7 years ago

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.

smtpstn commented 7 years ago

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 7 years ago

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.

smtpstn commented 7 years ago

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 7 years ago

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 7 years ago

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.

smtpstn commented 7 years ago

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 7 years ago

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

smtpstn commented 7 years ago

Hello, Thanks for quick response.

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

fbm

blopa commented 7 years ago

Yes, that's it :smile:

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

Best

smtpstn commented 7 years ago

Hello,

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

blopa commented 7 years ago

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

smtpstn commented 7 years ago

Hello,

Please check below SS:

fbms ge

blopa commented 7 years ago

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 7 years ago

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