# What should be the Callback URL for integration with FB messenger?

**URL:** <https://forum.rasa.com/t/what-should-be-the-callback-url-for-integration-with-fb-messenger/40008>\
**Category:** Rasa Open Source\
**Created:** [February 9, 2021, 12:22pm UTC](https://forum.rasa.com/t/what-should-be-the-callback-url-for-integration-with-fb-messenger/40008 "2021-02-09T12:22:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bipul](https://avatars.discourse-cdn.com/v4/letter/b/4491bb/32.png) [@Bipul](https://forum.rasa.com/u/Bipul)\
**Post date:** [February 9, 2021, 12:22pm UTC](https://forum.rasa.com/t/what-should-be-the-callback-url-for-integration-with-fb-messenger/40008/1 "2021-02-09T12:22:43Z")

</div>

Hi,

I have installed Rasa on one of our servers in a virtual environment. I have configured SSL certificates and we have created a co-domain name. So now I have a URL like this [https://co-domain.domain.in/](https://co-domain.domain.in/). When I open it in UI it is showing “Hello from Rasa: 1.6.0a1”. However, it doesn’t work, if I specify the same URL in Webhooks Callback URL for integration with Facebook Messenger.

I have not got any error on rasa side but Facebook Messenger not able to verify Callback URL. The Callback URL format is “[https://co-domain.domain.in/webhooks/facebook/webhook](https://co-domain.domain.in/webhooks/facebook/webhook)”.

Please help me to get out of this issue.

Thanks

---

<div class="post-metadata">

**Author:** ![amn41](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/amn41/32/20_2.png) [@amn41](https://forum.rasa.com/u/amn41)\
**Post date:** [February 10, 2021, 1:45pm UTC](https://forum.rasa.com/t/what-should-be-the-callback-url-for-integration-with-fb-messenger/40008/2 "2021-02-10T13:45:15Z")

</div>

hi @Bipul - did you use the server quick install script to install Rasa on your server? Or did you manually install rasa? Have you passed all the facebook params via your `credentials.yml` file? Also, what happens if you manually call `curl -XPOST https://co-domain.domain.in/webhooks/facebook/webhook` ?

---

<div class="post-metadata">

**Author:** ![Bipul](https://avatars.discourse-cdn.com/v4/letter/b/4491bb/32.png) [@Bipul](https://forum.rasa.com/u/Bipul)\
**Post date:** [February 12, 2021, 6:43am UTC](https://forum.rasa.com/t/what-should-be-the-callback-url-for-integration-with-fb-messenger/40008/3 "2021-02-12T06:43:02Z")

</div>

Hi Alan, Thanks for your response.

I have install rasa manually and we have 1.6 version of Rasa. Yes, I have passed all the Facebook params like a page access token, secret, and verify. in the credentail.yml file. Whenever I have tried call curl -XPOST [https://co-domain.domain.in/webhooks/facebook/webhook](https://co-domain.domain.in/webhooks/facebook/webhook) it is showing connection time out.

---

<div class="post-metadata">

**Author:** ![amn41](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/amn41/32/20_2.png) [@amn41](https://forum.rasa.com/u/amn41)\
**Post date:** [February 12, 2021, 1:00pm UTC](https://forum.rasa.com/t/what-should-be-the-callback-url-for-integration-with-fb-messenger/40008/4 "2021-02-12T13:00:11Z")

</div>

ok got it, so you’re just running it as a python process. Can you try starting the server with `rasa run --debug` ? the logs might show what’s going on. URL looks correct.

---

<div class="post-metadata">

**Author:** ![Bipul](https://avatars.discourse-cdn.com/v4/letter/b/4491bb/32.png) [@Bipul](https://forum.rasa.com/u/Bipul)\
**Post date:** [February 18, 2021, 4:24am UTC](https://forum.rasa.com/t/what-should-be-the-callback-url-for-integration-with-fb-messenger/40008/5 "2021-02-18T04:24:58Z")

</div>

I have tried starting the server with “rasa run --debug” and got the below output.

 ![Capture](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/5/5416b8bfe00a6afba19d26d166a4027bb6825387.jpeg)

I am not getting what is wrong going on here.

I have also tried this command ““rasa run -m models --enable-api --ssl-certificate server.cer.pem --ssl-keyfile server.key.pem --endpoints endpoints.yml --credentials credentials.yml -p 443 -v --debug --log-file coursebot\_logs --cors ‘\*’”” and got this output

 ![Capture_2](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/9/9ddcff3ebe36505a42fbd586418df20264193289.jpeg)

---

<div class="post-metadata">

**Author:** ![Bipul](https://avatars.discourse-cdn.com/v4/letter/b/4491bb/32.png) [@Bipul](https://forum.rasa.com/u/Bipul)\
**Post date:** [February 24, 2021, 11:16am UTC](https://forum.rasa.com/t/what-should-be-the-callback-url-for-integration-with-fb-messenger/40008/6 "2021-02-24T11:16:49Z")

</div>

Hi @amn41 , I have tried starting the server with “rasa run --debug” and got the below output.

 ![Capture](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/5/5416b8bfe00a6afba19d26d166a4027bb6825387.jpeg)

I am not getting what is wrong going on here.

I have also tried this command ““rasa run -m models --enable-api --ssl-certificate server.cer.pem --ssl-keyfile server.key.pem --endpoints endpoints.yml --credentials credentials.yml -p 443 -v --debug --log-file coursebot\_logs --cors ‘\*’”” and got this output

 ![Capture_2](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/9/9ddcff3ebe36505a42fbd586418df20264193289.jpeg)

---

<div class="post-metadata">

**Author:** ![amn41](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/amn41/32/20_2.png) [@amn41](https://forum.rasa.com/u/amn41)\
**Post date:** [March 10, 2021, 12:08pm UTC](https://forum.rasa.com/t/what-should-be-the-callback-url-for-integration-with-fb-messenger/40008/7 "2021-03-10T12:08:44Z")

</div>

hi @Bipul - at the top of your first screenshot there I see what looks like some logs from HTTP requests:

```auto
/webhooks/facebook/webhook GET

```

etc.

Can you please share what that output looks like? Also please copy and past the text rather than posting screenshots, that makes it much easier to read (and for others to discover this thread via google search)

---

<div class="post-metadata">

**Author:** ![Bipul](https://avatars.discourse-cdn.com/v4/letter/b/4491bb/32.png) [@Bipul](https://forum.rasa.com/u/Bipul)\
**Post date:** [March 15, 2021, 8:53am UTC](https://forum.rasa.com/t/what-should-be-the-callback-url-for-integration-with-fb-messenger/40008/8 "2021-03-15T08:53:09Z")

</div>

Hi @amn41 thanks for still helping me out.

When I run the command “ **rasa run --debug** ”. I am getting this log [another\_log.txt](https://forum.rasa.com/uploads/short-url/tXPrsmYtOJFxQz9QkEPAGEnSPd9.txt) (2.3 KB)

I have did nginx conf on my server. [nginx\_conf.txt](https://forum.rasa.com/uploads/short-url/1GujQTwchi1x4xiXjPjbsfUyROj.txt) (640 Bytes) for redirect the URL call to rasa.

I have run this command “ **rasa run -m models --enable-api --endpoints endpoints.yml --credentials credentials.yml -p 5005 -v --debug --log-file coursebotl\_logs --cors ‘\*’** ” and got this log file [coursebotl\_logs.txt](https://forum.rasa.com/uploads/short-url/oofvhvKS6nW1CwDWUEdiT8sRW8r.txt) (3.0 KB)

Now when I hit the URL “**[https://codomain.domain.in/webhooks/facebook/webhook](https://codomain.domain.in/webhooks/facebook/webhook)**” in browser I am getting “ **failure, invalid token** ”.

On rasa side I am getting “ **2021-03-15 14:21:40 WARNING rasa.core.channels.facebook - Invalid fb verify token! Make sure this matches your webhook settings on the facebook app.** ”

Even I am not able to test the CURL command because CURL command is showing “ **Connection time out** ”.

I don’t know where I am wrong.

---

<div class="post-metadata">

**Author:** ![amn41](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/amn41/32/20_2.png) [@amn41](https://forum.rasa.com/u/amn41)\
**Post date:** [March 31, 2021, 8:54am UTC](https://forum.rasa.com/t/what-should-be-the-callback-url-for-integration-with-fb-messenger/40008/9 "2021-03-31T08:54:46Z")

</div>

thanks @Bipul - the way the facebook webhook works is that FB first sends a GET request to that endpoint which you have to respond to with the correct response, so they know it’s really you.

All messages are then sent to the same endpoint as a POST request. So it makes sense that you’re getting the warning ` Invalid fb verify token! Make sure this matches your webhook settings on the facebook app` - this is everything working as expected. You can see more docs on that [here](https://developers.facebook.com/docs/messenger-platform/getting-started/webhook-setup/)

However I am confused why you are able to get this response in the browser but a `curl` command shows a timeout. Do you have a proxy set up on your computer?
