# How to Add Webhook Platform to Your Facebook App

### **Add the Webhook Platform to your Facebook App**

Klik tombol **'Product'**.

![Add Product](https://3286717921-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlqWTLEMUin8jixjPTHF7%2Fuploads%2FFlIRYB5Oy5Sps2vAvxiy%2FAdd%20product%20edit.png?alt=media\&token=faa0f415-78e9-498f-8119-1cfae746cf52)

Dari halaman daftar produk, klik tombol **'Set Up'** pada produk **'Webhook'**. Webhook Platform akan ditambahkan ke app Anda, dan akan menampilkan settings console dari Webhook.

![Set Up Webhook](https://3286717921-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlqWTLEMUin8jixjPTHF7%2Fuploads%2FAqEtM3C7Fm4ZvqrIBs8r%2FSetup%20webhook%20platform%20edit.png?alt=media\&token=91b17e50-4a3c-4eb0-b730-0e5c138b8d34)

### **Configure the Webhook for your App**&#x20;

Sebelum menyiapkan webhook, pastikan channel Facebook Anda online. Jika channel Facebook Anda sedang offline, Anda tidak akan dapat memverifikasi dan menyimpan webhook yang telah Anda konfigurasikan.

![Channel Connector](https://3286717921-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlqWTLEMUin8jixjPTHF7%2Fuploads%2F4aaoKB2avXoMab4jgm3M%2FChannel%20fb%20online%20edit.png?alt=media\&token=cad74e47-b825-4d1f-8bfc-c3d0ccf94c71)

Pilih kategori webhooks, contoh pilih kategori **Page**. Kemudian, klik tombol **'Subscribe to this object'**.

![Webhook Category](https://3286717921-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlqWTLEMUin8jixjPTHF7%2Fuploads%2FgA7b1R3XtZsga4vW8qN6%2Fselect%20page%20webhook.png?alt=media\&token=9309cb85-bff1-48bd-8e1d-3f37a05240e6)

Di pop-up '**Edit Page Subscription'**. Ini akan membuat app Anda berlangganan untuk menerima webhooks event untuk Page tersebut.

![Edit Page Subscription](https://3286717921-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlqWTLEMUin8jixjPTHF7%2Fuploads%2FJTS7gknZ55S2AcASAVcg%2Fedit%20subscription.png?alt=media\&token=1bdd6562-22b4-4b57-8aa6-909b9258f576)

Pada field **'Callback URL'**, copy dan paste public URL untuk webhook Anda.

![Callback URL](https://3286717921-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlqWTLEMUin8jixjPTHF7%2Fuploads%2F7KxI7jgMNiJrMtcuzjhU%2Fedit%20page%20subscription%20edit.png?alt=media\&token=e78a8d41-cf3f-4b5a-88a0-93b9a483eef5)

Public URL tersebut didapatkan ketika Anda telah selesai membuat channel Facebook pada aplikasi kami. Anda dapat menyalin url dengan mengklik tombol **'Channel Copy URL'** seperti gambar dibawah ini.&#x20;

{% hint style="warning" %}
Channel URL harus sudah ditambahkan port. Silahkan lihat halaman ini untuk menambahkan port.&#x20;
{% endhint %}

![Channel Copy URL](https://3286717921-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlqWTLEMUin8jixjPTHF7%2Fuploads%2FcZUhUDTTnT3DoyQJNLke%2Fchannel%20url%20added%20port%20edit.png?alt=media\&token=2b2e6ac6-c419-4a5a-9e77-9f6cfd99cf6d)

Di field **'Verify Token'**, masukkan verify token untuk webhook Anda. Klik tombol **‘Verify and Save‘**.

![Verify Token](https://3286717921-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlqWTLEMUin8jixjPTHF7%2Fuploads%2Fs6vzmNUHnE3CFxgE8mqr%2Fverify%20token%20webhook%20edit.png?alt=media\&token=9bd97026-bc7c-4a33-8b73-bbbebaf214f7)

Klik tombol '**Subscribe'** pada '**feeds'**, '**pictures'**, **'ratings',** dan **'videos'.**

<figure><img src="https://3286717921-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlqWTLEMUin8jixjPTHF7%2Fuploads%2FjckWhP2wmGtVkySmTlon%2Fsubscription%20webhook%20edit.png?alt=media&#x26;token=9dc6a1c2-ae08-4426-92f6-81ef7d224487" alt=""><figcaption><p>Webhook Subscribe</p></figcaption></figure>
