Facebook Rasa Connection

I have a problem connecting rasa to facebook messenger using ngrok

my credentials.yml file i am using a custom endpoint called /fbWebhook Need help urgently

Hi @ssc19999

Follow this Documentation: also as I see your code You need to make the webhook look like this

https://<host>:<port>/webhooks/facebook/webhook

Hi @anoopshrma, I’ve followed that documentation and tried using a custom web hook instead and wanted help with that, thank you

Hi @ssc19999

Did it solve your issue? If so please mark it as solution.

Hi @anoopshrma no it is not the solution

@ssc19999, Did you set the webhook in the required format?

@anoopshrma i want a custom webhook, hence a solution to that would be appreciated

@ssc19999 I’m not sure what is the usecase?

Rasa follows the URL path for all the connector in this fashion only:
https://<host>:<port>/webhooks/facebook/webhook

The max you can change are the last two parts by creating your own Custom connector. You can take a look into how to create custom connector here

im trying to connect to facebook messenger using a custom webhook. If you want i can show how i’ve integrated it in my code

this is the code

@app.route("/fbWebhook", methods=["GET", "POST"])
def handle_facebook_message():
    print (request)
    if request.method == 'GET':
        """Before allowing people to message your bot, Facebook has implemented a verify token
        that confirms all requests that your bot receives came from Facebook."""
        token_sent = request.args.get("hub.verify_token")
        print(token_sent)
        return verify_fb_token(token_sent)

Rasa allows customization only after /webhooks You can add endpoint of your choice after this.

there are lot of instances on the web where webhooks are present before /webhooks as you’ve mentioned, but this forum is an official RASA forum and yet it isn’t of help