# Facebook Setup - Webhook not resolving

**URL:** <https://forum.rasa.com/t/facebook-setup-webhook-not-resolving/11986>\
**Category:** Rasa Open Source\
**Created:** [June 24, 2019, 8:15pm UTC](https://forum.rasa.com/t/facebook-setup-webhook-not-resolving/11986 "2019-06-24T20:15:25Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ManyChat](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@ManyChat](https://forum.rasa.com/u/ManyChat)\
**Post date:** [June 24, 2019, 8:15pm UTC](https://forum.rasa.com/t/facebook-setup-webhook-not-resolving/11986/1 "2019-06-24T20:15:25Z")

</div>

I tried this on 3 different platforms: my laptop, PC, and digitalocean.

Everytime I try to verify the webhook address on Facebook for https://\<YOUR\_HOST\>/webhooks/facebook/webhook. In my case \<YOUR\_HOST\> is the ngrok URL for my PC/Laptop, and the webserver address for digitalocean - Facebook cannot reach the URL.

I have even tried it with the port numbers (5002 and 5005). Still no luck!

I can’t even resolve the URLs within my web browser - so I must be missing some step in the setup? What am I missing?

---

<div class="post-metadata">

**Author:** ![ManyChat](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@ManyChat](https://forum.rasa.com/u/ManyChat)\
**Post date:** [June 28, 2019, 1:40am UTC](https://forum.rasa.com/t/facebook-setup-webhook-not-resolving/11986/2 "2019-06-28T01:40:03Z")

</div>

Has anyone else encountered this situation?

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [June 28, 2019, 2:21am UTC](https://forum.rasa.com/t/facebook-setup-webhook-not-resolving/11986/3 "2019-06-28T02:21:04Z")

</div>

What are you using as the host? Are you using [ngrok](http://rasa.com/docs/rasa/user-guide/messaging-and-voice-channels/#messaging-and-voice-channels)?

---

<div class="post-metadata">

**Author:** ![ManyChat](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@ManyChat](https://forum.rasa.com/u/ManyChat)\
**Post date:** [June 28, 2019, 7:10pm UTC](https://forum.rasa.com/t/facebook-setup-webhook-not-resolving/11986/4 "2019-06-28T19:10:27Z")

</div>

@erohmensing I have used ngrok for my local PC.

Then I set it up within digitalocean, and used the IP address to set it up too. Should I setup a domain for it?

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [June 28, 2019, 7:14pm UTC](https://forum.rasa.com/t/facebook-setup-webhook-not-resolving/11986/5 "2019-06-28T19:14:05Z")

</div>

Hm, I’ve never worked with digitalocean, but if you have an ip address then I think the ip address with the port number should work. But you weren’t able to get it running locally via ngrok either?

> I can’t even resolve the URLs within my web browser - so I must be missing some step in the setup?

What do you mean by this? perhaps this is the issue

---

<div class="post-metadata">

**Author:** ![ManyChat](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@ManyChat](https://forum.rasa.com/u/ManyChat)\
**Post date:** [June 29, 2019, 10:15am UTC](https://forum.rasa.com/t/facebook-setup-webhook-not-resolving/11986/6 "2019-06-29T10:15:16Z")

</div>

@erohmensing - I am able to access Rasa X through the server/IP address. As for locally - ngrok worked to serve up Rasa X but not the Facebook webhook address.

So, the only thing that won’t resolve is the Facebook webhook address. I am not sure which step I could be missing since I followed everything on the directions down to the T (multiple times) lol.

---

<div class="post-metadata">

**Author:** ![ManyChat](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@ManyChat](https://forum.rasa.com/u/ManyChat)\
**Post date:** [July 1, 2019, 12:44am UTC](https://forum.rasa.com/t/facebook-setup-webhook-not-resolving/11986/7 "2019-07-01T00:44:03Z")

</div>

I realized what I was doing wrong

With the new “rasa run” command I wasn’t specifying the credentials or the endpoints.

I had to edit the endpoints to uncomment the following:

```auto
#action_endpoint:
# url: "http://localhost:5005/webhook"

```

After I revised endpoints.yml and credentials.yml I ran the below. As a side note - I used this for my Anaconda Windows 10 setup for those wondering the environment.

> rasa run -m models --credentials credentials.yml --enable-api --log-file out.log --endpoints endpoints.yml

For others, if you used docker, it should look like this:

> docker run -v $(pwd):/app rasa/rasa run -m models --credentials credentials.yml --enable-api --log-file out.log --endpoints endpoints.yml

---

<div class="post-metadata">

**Author:** ![ManyChat](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@ManyChat](https://forum.rasa.com/u/ManyChat)\
**Post date:** [July 2, 2019, 2:21am UTC](https://forum.rasa.com/t/facebook-setup-webhook-not-resolving/11986/8 "2019-07-02T02:21:53Z")

</div>

One last note is that Facebook Webhook only takes “https” so when you run ngrok on your local install, they provide you both http/https.

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [July 2, 2019, 3:35pm UTC](https://forum.rasa.com/t/facebook-setup-webhook-not-resolving/11986/9 "2019-07-02T15:35:28Z")

</div>

Thank you so much for the clear explanation of your setup and solution!
