> For the complete documentation index, see [llms.txt](https://docs.3dolphins.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.3dolphins.ai/integration/channel-connector/facebook/create-a-new-channel-of-facebook.md).

# Create New Facebook Channel

This section describes how to create a new Facebook page channel, by doing the following steps:

Go to the **Integration** menu and click the **Channel Connector** menu, then you will see a channel connector page such as image below.

![Channel Connector](/files/ZFLXZ6BiccI1cozEwP12)

On the channel connector page, click the **'Plus'** button on the box channel Facebook page, and then you will see a pop-up channel setting.&#x20;

![Channel Setting](/files/BjfQHXaixqoSJu4jdtKG)

**Component Explanation:**

<table><thead><tr><th width="311.5">Name</th><th>Description</th></tr></thead><tbody><tr><td>App ID</td><td>A unique identification number will be added to your App.</td></tr><tr><td>App Secret</td><td>Facebook app will automatically generate a secret code connected with your app. Its purpose is to authenticate requests from the application to Facebook servers.</td></tr><tr><td>Page Access Token</td><td>A page access token to start using the platform APIs or to manage and access your page.</td></tr><tr><td>Version</td><td>API Version used on your Facebook app.</td></tr></tbody></table>

### Get App ID

Copy Facebook page **'App ID'** to the channel settings page which can be found on the **'Settings'** section and select '**Basic'** from the drop-down menu. Settings basic console will be displayed. See the image below.

![Basic Settings](/files/dC0ViZ6AqD6X2uBquKau)

Paste **'App ID'** into the pop-up channel settings.

![App ID](/files/WqkPRFUrszBXCGkJCB0E)

### Get App Secret

Copy the Facebook page **'App Secret'** to the settings page which can be found on the **'Settings'** section and select **'Basic'** from the drop-down menu. The basic app's settings will be displayed, and click the **'Show'** button on the app's secret. See the image below.

![Basic Settings](/files/DjMVBuONc9WgS6XQLRnQ)

Paste **'App Secret'** into the pop-up channel settings.

![App Secret](/files/fTfShDUk1Lmc7H2127fF)

### Get Page Access Token

Paste **'Page Access Token'** into the Facebook page channel settings box.

![Page Access Token](/files/kYXaaq7NUEeR62Dd1j0x)

You can get a page access token by following the steps below.

#### Obtain Short-Lived Page Access Token

Click the **'Tools'** menu and select '**Graph API Explorer'**.

![Graph API Explorer](/files/AIY10kvfTYG6zI3eDBc9)

In the field **Meta App**, select an app used to obtain the page access token.

![Select Meta Application](/files/6JloJxkxLtRb3xOZRmz7)

Click **Get Token** → **Get Page Access Token** and select your Facebook app.&#x20;

![Page Acces Token](/files/ilCVJla7XkGUV2poAnBg)

Then, select permission for your access token. To know about what permission must be selected, please refer to [this](/integration/channel-connector/facebook/how-to-create-facebook-app/permission-and-feature.md) documentation.&#x20;

<figure><img src="/files/JsdChBTvNvxxpfV2yBNp" alt=""><figcaption><p>Select Permission</p></figcaption></figure>

Click **'Copy'** on your **Page Access Token**.

![Copy Page Access Token](/files/2ETljnktAhf0XSaCLaw5)

Check the properties in [**Access Token Debugger**](https://developers.facebook.com/tools/debug/accesstoken), click **Tool** to see the token in **Access Token Debugger**, paste the access token copied in the last step above to the text field and click the **'Debug'** button.

![Access Token Debugger](/files/uhWyIYAlJyb6orc2EeXH)

Please check the followings:

![Page Access Token](/files/N6WgJpPu91bYdUNWLfx0)

1. **App ID**: the app id mentioned in the pre-requisite section.
2. **Type**: page.
3. **User ID**: you, a person who has admin rights to the Facebook Page mentioned in the pre-requisite section.
4. **Expires**: a time stamp that would probably expire in an hour or two.
5. **Scopes:** includes predetermined added permissions.&#x20;

#### **Exchange for Long-Lived Page Access Token**

Click **Extend Access Token** to get a long-lived token.

![Extend Access Token](/files/XJjsoScJ350ySZyhtLqc)

Click the '**Debug'** button.

![Debug](/files/FldARynfRHmd84V3niG5)

Then, Facebook will ask you to enter your account password and click the **'Submit'** button.

<figure><img src="/files/I8eoicjBnVpwxjbhfjgH" alt=""><figcaption><p>Re-enter Password</p></figcaption></figure>

Check the properties of this access token in **Access Token Debugger**. It should have a longer time such as 60 days, or Never in the **Expires**.

![Page Access Token](/files/XGw0ZJXF7UxQJ1jFbOw8)

1. **App ID**: the app id mentioned in the prerequisite section.
2. **Type**: page.&#x20;
3. **Profile ID**:&#x20;
4. **User ID**: you, a person who has admin right to the Facebook Page mentioned in the prerequisite section
5. **Expires**: About 2 Months.

Next, select the version and click the **'Authorize'** button.

![Authorize Channel](/files/OtFvgMeMvsnd1ExEc2An)

On the pop-up, click '**Add Page Channel'**.

![Pop-up Authorization](/files/0Xdxq05BKxIS4xpinkpt)

If authorize successfully, click the **'Save'** button.&#x20;

<figure><img src="/files/bOPBD1scdG0Fs1UJKCs5" alt=""><figcaption><p>Save Channel Setting</p></figcaption></figure>

And then, the Facebook page channel **Divers Dolphins** has successfully created.

![Add New Facebook Channel](/files/j9inbwLQPDNL48wlpP5k)

**Component Explanation:**

<table><thead><tr><th width="92.66666666666666">No.</th><th width="226">Component</th><th>Description</th></tr></thead><tbody><tr><td>1.</td><td>Channel Name</td><td>Name of your Facebook Page channel. Hover on the channel name to view the channel port.</td></tr><tr><td>2.</td><td>Channel ID</td><td>Each channel registered in Omni Channel 3Dolphins has a different ID.</td></tr><tr><td>3.</td><td>Channel Config Button</td><td>Click to edit the LOBs that can access this channel and your Facebook API version.</td></tr><tr><td>4. </td><td>Channel URL Edit Button</td><td>Click to edit channel URL. If connecting with proxy, please adjust the URL accordingly.</td></tr><tr><td>5</td><td>Channel URL Copy Button</td><td>Click to copy the channel URL to the clipboard.</td></tr><tr><td>6</td><td>Online / Offline Button</td><td>Click to turn on or off the channel. Red means offline, Green means online.</td></tr><tr><td>7</td><td>Refresh Button</td><td>Refresh your channel at any time to ensure you are always up to date with the refresh button.</td></tr></tbody></table>

Then, you must add **Port** to the channel URL that has been added. To find the channel port, hover over the channel name, then enter the port on the **'Channel Edit URL'** button.

<figure><img src="/files/qg4vHfeTb3YH8S4PDjTu" alt=""><figcaption><p>Add Port Channel</p></figcaption></figure>

{% hint style="info" %}
This channel URL will be used as a callback URL when configuring the messenger platform on your Facebook application.
{% endhint %}
