# How to Add “Webhooks” Platform to Your Facebook App

### **Add the Webhooks Platform to your Facebook app**

Click “**Product**” button.

![Add Product](https://2268349083-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MUzXXHmP--3SaOXi9aj%2F-MUzb_pf_rmw5zyXla0W%2Fimage.png?alt=media\&token=8dedb1e8-bc88-43a5-8c9e-469ab62fcbfb)

From the product list page click on “**Set Up**” button from product with name “**Webhooks**”. The webhooks Platform will be added to your app, and the webhooks settings console will be displayed.

![Set Up Webhooks](https://2268349083-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MUzXXHmP--3SaOXi9aj%2F-MUzbvi8oBkW_UoT5n79%2Fimage.png?alt=media\&token=ae2f2fe2-127f-492c-8e63-4efd910f3124)

### **Configure the Webhooks for your App**

Before setting up a webhook, make sure the Instagram channel is online. If the Instagram channel is offline, you will not be able to verify and save the webhook you have configured.

![Enable Instagram Channel](https://2268349083-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MUzl3WagOAR5pVE5OPb%2F-MUzor1LYyEfNvgYAd6s%2Fimage.png?alt=media\&token=5f9208f5-c8e0-432e-a65c-4a8a06ef1c9e)

After the Instagram channel is online, on the developer Facebook page click webhooks product and select webhooks category, example select category ‘**Instagram**‘,

![Webhooks Category](https://2268349083-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MUs0YGpfcoIQval18yx%2F-MUs0wthoK18mc4PXlXt%2Fimage.png?alt=media\&token=f500c6a5-e897-48b8-857f-d8979c096be8)

Click “**Subscribe to this object**” button,

![Subscribe Object](https://2268349083-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MUs0YGpfcoIQval18yx%2F-MUs11qBI5ZTwvVcLj23%2Fimage.png?alt=media\&token=573ecff5-7e6d-4d65-9f51-296f350491f1)

In the pop up “**Edit Instagram Subscription**”. This will subscribe your app to receive webhook events for the Page.

![Edit Instagram Subscription](https://2268349083-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MUs0YGpfcoIQval18yx%2F-MUs17KS6pvVA6ldQYAx%2Fimage.png?alt=media\&token=7baaad45-6335-4362-ae47-e3873a79f821)

In the **‘Callback URL**‘ field, copy and paste public URL for your webhook.

![Callback URL](https://2268349083-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MUs0YGpfcoIQval18yx%2F-MUs1d1Br9ZbCry06huy%2Fimage.png?alt=media\&token=b3bc056a-0569-45b4-9d46-9c2dcaef17b6)

Do also copy and paste the callback URL to the Dashboard channel facebook page which can be found on the channel and click ‘**Channel URL**’. See image below.

![Channel URL](https://2268349083-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MUzXXHmP--3SaOXi9aj%2F-MUzd2aMACpNMFbbh1u2%2Fimage.png?alt=media\&token=8f5416ba-b357-4f5b-b292-ad5e0290da65)

Make sure channel url has been added port. Hover on top of channel name to view the channel port, see the image below.

![Channel Port](https://2268349083-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MUzXXHmP--3SaOXi9aj%2F-MUze27axmiCXlhZONUO%2Fimage.png?alt=media\&token=5062e821-f1be-4146-ba94-5c051aefe9d6)

Update the url channel (adding a port be obtained ‘**31709**‘). See the image below

![Update URL Channel](https://2268349083-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MUzXXHmP--3SaOXi9aj%2F-MUzeOtwOSXkzSfKvAAZ%2Fimage.png?alt=media\&token=d7d97a80-5b42-4c41-92a0-b674b370e9c1)

In the **‘Verify Token**‘ field, enter the verify token for your webhook. Click the **‘Verify and Save**‘ button.

![Verify and Save](https://2268349083-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MUs0YGpfcoIQval18yx%2F-MUs1y_vY4S-3rWBEBQC%2Fimage.png?alt=media\&token=4623183a-23f8-4059-ab81-a474f889dbda)

On the webhook page, click the “**Subscribe**” button on ‘comment’.

![Subscribe](https://2268349083-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MUs0YGpfcoIQval18yx%2F-MUs3OVs0O7pBV2OUMnd%2Fimage.png?alt=media\&token=c5da576c-6862-4c24-9cab-53f4f3006870)
