How to do Facebook Messenger Bot development locally?

后端 未结 6 2560
星月不相逢
星月不相逢 2021-02-20 04:36

When setting webhooks, it\'s saying a Secure URL is required.

6条回答
  •  不知归路
    2021-02-20 05:08

    I created a library that tries to solve this exact problem! With fb-local-chat-bot you can easily test your bot offline. One nice thing is that you can get started on development WITHOUT even connecting with Facebook.

    The library also makes testing much more simple. If you're interested, definitely check it out

    https://github.com/spchuang/fb-local-chat-bot

    This is how it looks. When you hook up the library, you can access the local client at an url you defined (e.g. http://localhost:5000/webhook/localChat/):

提交回复
热议问题