Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webhook URL not generating #31

Closed
smtpstn opened this issue Mar 28, 2017 · 15 comments
Closed

Webhook URL not generating #31

smtpstn opened this issue Mar 28, 2017 · 15 comments

Comments

@smtpstn
Copy link

smtpstn commented Mar 28, 2017

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

@smtpstn smtpstn changed the title Webhook not generating Webhook URL not generating Mar 28, 2017
@blopa
Copy link
Owner

blopa commented Mar 28, 2017

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
Copy link
Author

smtpstn commented Mar 29, 2017

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
Copy link
Owner

blopa commented Mar 30, 2017

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
Copy link
Author

smtpstn commented Mar 30, 2017

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
Copy link
Owner

blopa commented Mar 30, 2017

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
Copy link
Owner

blopa commented Mar 30, 2017

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
Copy link
Author

smtpstn commented Mar 30, 2017

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
Copy link
Owner

blopa commented Mar 30, 2017

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
Copy link
Author

smtpstn commented Mar 30, 2017

Hello,
Thanks for quick response.

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

fbm

@blopa
Copy link
Owner

blopa commented Mar 30, 2017

Yes, that's it 😄

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

Best

@smtpstn
Copy link
Author

smtpstn commented Mar 30, 2017

Hello,

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

@blopa
Copy link
Owner

blopa commented Mar 30, 2017

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

@smtpstn
Copy link
Author

smtpstn commented Mar 30, 2017

Hello,

Please check below SS:

fbms
ge

@blopa
Copy link
Owner

blopa commented Mar 30, 2017

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
Copy link
Owner

blopa commented Mar 30, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants