# Facebook

### Step 1[](https://docs.postiz.com/providers/facebook#step-1)

Create a [new app in Facebook developers<span class="nx-sr-only nx-select-none">(opens in a new tab)</span>](https://developers.facebook.com/apps/creation/), choose the business you want to connect it to.  
Please be advised that for public applications you would need to verify you business.

![Create app](https://github.com/user-attachments/assets/e24f15a7-d9b1-48cb-8952-7a5258923b4c)

### Step 2[](https://docs.postiz.com/providers/facebook#step-2)

Select "Other" and click next

![Other](https://github.com/user-attachments/assets/9c976b82-0b73-4d1d-b3ef-cf98e4cc0c50)

### Step 3[](https://docs.postiz.com/providers/facebook#step-3)

Then select business

![Business](https://github.com/user-attachments/assets/74bde861-5441-46bb-b5b8-c5229e980237)

Add all your details and click Create App

### Step 4[](https://docs.postiz.com/providers/facebook#step-4)

![CleanShot 2024-09-24 at 13 45 54](https://github.com/user-attachments/assets/f0c03825-0f9b-4467-94a4-ab8cf6ed7e1d)

Set final details

### Step 5[](https://docs.postiz.com/providers/facebook#step-5)

![Setup Login with Facebook](https://github.com/user-attachments/assets/08d3c1d1-d498-49d1-adac-aa6248e7c10c)

Set up login for business

### Step 6[](https://docs.postiz.com/providers/facebook#step-6)

Set up a redirect URI back to the application![step 6](https://github.com/user-attachments/assets/8bf1774b-b6fe-4ac6-aea5-97d8c8bbf5da)

The default dev container redirect URI is `http://localhost:4200/integrations/social/facebook`

### Step 7[](https://docs.postiz.com/providers/facebook#step-7)

![step 7](https://github.com/user-attachments/assets/a81aa2a3-de66-4099-906b-b78c641d1a23)

Go to advanced permission and request access for the following scopes: `pages_show_list` `business_management` `pages_manage_posts` `pages_manage_engagement` `pages_read_engagement` `read_insights`

### Step 8[](https://docs.postiz.com/providers/facebook#step-8)

![Keys](https://github.com/user-attachments/assets/ac11f87f-4951-47f8-8344-7fbc9de942e4)

Go to basic permissions copy your App ID and App Secret and paste them in your `.env` file

```
FACEBOOK_APP_ID="app id"
FACEBOOK_APP_SECRET="app secret"
```

<div class="nextra-code-block nx-relative nx-mt-6 first:nx-mt-0" id="bkmrk--15"><div class="nx-opacity-0 nx-transition [div:hover>&]:nx-opacity-100 focus-within:nx-opacity-100 nx-flex nx-gap-1 nx-absolute nx-m-[11px] nx-right-0 nx-top-0" style="box-sizing: border-box; border: 0px solid rgb(229, 231, 235); --tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; --tw-rotate: 0; --tw-skew-x: 0; --tw-skew-y: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-ring-offset-width: 0px; --tw-ring-offset-color: #fff; --tw-ring-color: rgba(59,130,246,.5); --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-shadow: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-shadow-colored: 0 0 transparent; position: absolute; right: 0px; top: 0px; margin: 11px; display: flex; gap: 0.25rem; opacity: 0; transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter, backdrop-filter; transition-duration: 0.15s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);"><button class="nextra-button nx-transition-all active:nx-opacity-50 nx-bg-primary-700/5 nx-border nx-border-black/5 nx-text-gray-600 hover:nx-text-gray-900 nx-rounded-md nx-p-1.5 dark:nx-bg-primary-300/10 dark:nx-border-white/10 dark:nx-text-gray-400 dark:hover:nx-text-gray-50" tabindex="0" title="Copy code"><svg class="nextra-copy-icon nx-pointer-events-none nx-h-4 nx-w-4" fill="none" height="24" stroke="currentColor" viewbox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><rect height="13" rx="2" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" width="13" x="9" y="9"></rect><path d="M5 15H4C2.89543 15 2 14.1046 2 13V4C2 2.89543 2.89543 2 4 2H13C14.1046 2 15 2.89543 15 4V5" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg></button></div></div>Facebook should now be working!