# Create New Instagram Business Channel

This section describes how to mechanism for creating a new Instagram business 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 images below.&#x20;

![Channel Connector](https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FsNPzcpEaeIqQkjgZ2iqO%2Fchannel%20connector%20ig%20edit.png?alt=media\&token=ff9f2ec5-9e30-41f3-976b-fb8d94bbd51d)

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 Instagram](https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FJkkva276F9UgrrCJXVcA%2FChannel%20setting%20ig%20edit.png?alt=media\&token=3893c7c0-2995-4619-92bd-83315a20ea89)

**Component Explanation:**

| Name              | Description                                                                                                                                                                                                          |
| ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| App ID            | A unique identification number will be added to your App.                                                                                                                                                            |
| App Secret        | Facebook App will automatically generate a secret code which is connected with your App. Its purpose is to authenticate demands from the application towards Facebook servers. This code is also used as a password. |
| User Access Token | User access token to the Facebook API.                                                                                                                                                                               |
| Page Access Token | Page access token to start using the platform APIs or to manage and access your page.                                                                                                                                |

### **Get App ID**

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

![Get App ID](https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2F49iy1YaDHFWSYN8hWHTq%2FApp%20id%20edit.png?alt=media\&token=b9797496-4749-484b-9e2a-e6a78679f818)

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

<figure><img src="https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FcfaUtQIyKX89eWWFwrCo%2Fchannel%20setting%20app%20id%20ig%20edit.png?alt=media&#x26;token=625e8421-d687-4415-8715-224d67cbf44b" alt=""><figcaption><p>App ID</p></figcaption></figure>

### **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. Settings basic app will be displayed, click the '**Show'** button on the app secret. See the image below.

![Get App Secret](https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FWAU49ozFfYHsSVIA4E3W%2FApp%20secret%20edit.png?alt=media\&token=b572c70b-3836-4d0a-ad6f-4fb8df400214)

Paste '**App Secret'** pada pop-up dari channel setting.

![Show App Secret](https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FqZmqMh972nGXoi9MNEkX%2FChannel%20setting%20app%20secret%20ig%20edit.png?alt=media\&token=3c927b83-adae-4bc6-8309-0e7863404180)

### Get User Access Token

Tempelkan **'User Access Token'** into the Facebook page channel settings box.

![User Access Token](https://765826444-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MUzXXHmP--3SaOXi9aj%2F-MUzaQrRAc4YG0snqkmS%2Fimage.png?alt=media\&token=d9d5661a-2b54-4ef5-85ae-45dc408a7d4d)

You can get a user access token by following the steps below.&#x20;

#### Obtain Short-Lived User Access Token

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

![Graph API Explorer](https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FUeJzi4Fc46EyJONQp3QW%2Fgraph%20api%20explorer%20ig%20user%20edit.png?alt=media\&token=a4c9cdbb-7004-4a78-ad1a-e8232e8dfe0f)

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

![Obtain Access Token](https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FmTJW2vGJ0yquZRwl6SB3%2FSelect%20meta%20app%20user%20token.png?alt=media\&token=8b480872-795d-4f74-ad32-7853a7681dca)

Click **User Token** → **Get User Access Token**.&#x20;

![Get User Access Token](https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FbQQ96ftVCarjgdqjYhd8%2Fget%20user%20access%20token.png?alt=media\&token=6636f7e4-e266-42f6-abec-b47cf098f1ea)

Then, select permission for your user access token. Please refer to [this](https://docs.3dolphins.ai/integration/channel-connector/facebook/how-to-create-facebook-app/permission-and-feature) documentation to know what permission must be selected. Additionally, you must add additional permissions particularly **`instagram_basic`**` ``and`` `**`instagram_manage_comments`**.

![Select Permission](https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2Fba1wOh6BMgmZRuFIRyZG%2FPermissions%20user%20acces%20token.png?alt=media\&token=335790e6-94b6-421e-9676-0319f2e64981)

Click the **'Generate Access Token'** button and you will be requested to log in to your Facebook account.

<figure><img src="https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FTQD2RS0Mf8s6tLCLazv2%2Fgenerate%20access%20token.png?alt=media&#x26;token=277c8088-23bc-4a0c-b650-dd9b3ff2049d" alt=""><figcaption><p>Generate User Acces Token</p></figcaption></figure>

Then, select your Instagram business account and click **'Next'**.

<figure><img src="https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FIjgLaBKcEoFlu0l8wmKa%2Fselect%20instagram%20account.png?alt=media&#x26;token=08a0e45d-6d3c-4744-afbc-cf3ddccfb5eb" alt=""><figcaption><p>Select Intagram Business Account</p></figcaption></figure>

Select your Facebook page then click **'Next'**.

<figure><img src="https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FbCEQMVdhQ7DqivgE4dxA%2Fselect%20fb%20page.png?alt=media&#x26;token=c0ce4e72-15b5-45e0-9b72-f479f1c0dec3" alt=""><figcaption><p>Select Facebook Page</p></figcaption></figure>

Pop-up permission will appear to manage your business Instagram account and click **'Done'**.

<figure><img src="https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2Fv81CcDLgHqVkvlqdcOtD%2Fpermission%20allow%20fb.png?alt=media&#x26;token=a7e55b0a-ac70-4160-b71b-2c4e14c6957a" alt=""><figcaption><p>Pop-up permissions</p></figcaption></figure>

Then, click the **'Copy'** button to copy the **User Access Token**.

<figure><img src="https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FOvlAhXrY27W5wLLEsaJs%2FCopy%20user%20access%20token.png?alt=media&#x26;token=9705fb7a-f3a3-40f7-92a9-55c41d89c756" alt=""><figcaption><p>Copy User Access Token</p></figcaption></figure>

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

![Access Token Debugger](https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2Fn2vCsAK2ahbiUZXnu2ij%2Facces%20token%20debuger%20user%20edit.png?alt=media\&token=d190f38f-1ec6-4035-9d34-c2b8a3d7c508)

Please check the followings:

![Access Token Info](https://765826444-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MUrkz5hAqVbbotfKFxd%2F-MUs-ULOxEyZVXIYyuMa%2Fimage.png?alt=media\&token=7118103a-c1f6-4df8-bcf4-4d30b58a9aaa)

1. **App ID**: the app id mentioned in the prerequisite section.
2. **Type:** user.
3. **User ID**: you, a person who has admin right to the Facebook Page mentioned in the prerequisite section
4. **Expires**: a time stamp that would probably expire in an hour.&#x20;
5. **Scope**: includes predetermined added permissions.&#x20;

#### Exchange for Long-Lived User Access Token

Click the **'Extend Access Token'** button to get a long-lived token

<figure><img src="https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2Fe0MCsKRQwk52RwIh0Fsh%2Fextend%20access%20user%20token.png?alt=media&#x26;token=817315b8-db37-41cf-aef3-c2466a208838" alt=""><figcaption><p>Extend Access Token</p></figcaption></figure>

Click the **'Debug'** button.

![Debug Access Token](https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2F43HzW6hH08fy1ERLKZXR%2Fdebug%20extend%20user%20access%20token%20edit.png?alt=media\&token=5a2ff789-da6e-4004-a41a-9710b2bf3637)

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

![User Access Token](https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FUR4FdKkbwmgf9029WxRP%2Fextend%20expires%20user%20access%20token%20edit.png?alt=media\&token=436d4233-749c-415a-a6d5-a1450b747613)

Check the properties of this page access token in **Access Token Debugger**:

1. **App ID**: the app id mentioned in the prerequisite section.&#x20;
2. **Type**: user.
3. **User ID**: you, a person who has admin right to the Facebook Page mentioned in the prerequisite section
4. **Expires:** in about 2 months.
5. **Scopes:** includes predetermined added permissions.&#x20;

### Get Page Access Token

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

<figure><img src="https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FNW2f3VlaXggMLGjcoNyv%2Fchannel%20setting%20page%20access%20token%20edit.png?alt=media&#x26;token=13646fc7-02f3-4698-9c0f-c4417d9b7f8e" alt=""><figcaption><p>Page Access Token</p></figcaption></figure>

You can get a page access token by following the steps below.&#x20;

#### Obtain Short-Lived User Access Token

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

<figure><img src="https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FbBWZRQYmTmSANifYxypM%2FPage%20token%20access.png?alt=media&#x26;token=12972ea2-ef1b-4af2-8b8e-13a9c7882f46" alt=""><figcaption><p>Graph API Explorer</p></figcaption></figure>

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

<figure><img src="https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FM6pgtubplR0qf0j14MUZ%2FApp%20page%20token.png?alt=media&#x26;token=c96d0f13-9550-4562-96ea-60a8fab68074" alt=""><figcaption><p>Obtain Page Access Token</p></figcaption></figure>

Click **Get Token** → **Get Page Access Token** dan pilih Facebook page milik Anda.

<figure><img src="https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FMO6dUCFRVimynwYA0BvE%2Fpage%20token%20type.png?alt=media&#x26;token=56008a23-94f8-4634-b1c3-7aab18872f30" alt=""><figcaption><p>Get Page Access Token</p></figcaption></figure>

Then, select permission for your user access token. Please refer to [this](https://docs.3dolphins.ai/integration/channel-connector/facebook/how-to-create-facebook-app/permission-and-feature) documentation to know what permission must be selected. Additionally, you must add additional permissions particularly **`instagram_basic`**` ``and`` `**`instagram_manage_comments`**.

<figure><img src="https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FlhgLtKEtLS2obGlxUtF6%2Fpage%20token%20permission.png?alt=media&#x26;token=2bc90fba-8acf-47e2-9361-b571eaf62bd5" alt=""><figcaption><p>Select Permission Page Access Token</p></figcaption></figure>

Then, click the **'Copy'** button to copy the **Page Access Token**.

<figure><img src="https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FSbSXgq7QVjatx8PAHD8O%2Fcopy%20page%20access%20token.png?alt=media&#x26;token=ba7012f3-0209-423f-a9c0-4e384411e706" alt=""><figcaption><p>Copy Page Access Token</p></figcaption></figure>

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

<figure><img src="https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2Fdv5SUuLnalakIHZFRDAk%2Facces%20page%20token%20debugger%20edit.png?alt=media&#x26;token=7809eaab-44e5-45a0-87bc-fa2a10c39aac" alt=""><figcaption><p>Access Token Debugger</p></figcaption></figure>

Please check the followings:

<figure><img src="https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FEicPwKXGo7A77CwGAY6z%2Fpage%20access%20token%20debug%20result%20edit.png?alt=media&#x26;token=10b8e7dc-3192-40e4-aa8b-08b918b65b55" alt=""><figcaption><p>Page Access Token</p></figcaption></figure>

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

#### Exchange for Long-Lived User Access Token

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

<figure><img src="https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FgBICGb6eOTVh6U5dyvmb%2Fextend%20page%20access%20token%20edit.png?alt=media&#x26;token=df9a50c0-e5fb-44d3-9869-66ddf2d6b18c" alt=""><figcaption><p>Extend Page Access Token</p></figcaption></figure>

Click the **'Debug'** button.

<figure><img src="https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FihleJPv7yoSBV5ZWLM14%2FDebug%20extend%20page%20access%20token%20edit.png?alt=media&#x26;token=280a894b-8427-42c8-93a5-03adb6ebe845" alt=""><figcaption><p>Debug Page Access Token</p></figcaption></figure>

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

<figure><img src="https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2F5f0ZRxMrikDFPIKhcfVI%2Fextend%20page%20access%20token%20long%20edit.png?alt=media&#x26;token=9efe7eb8-79b5-4d05-9762-7c7ceddea38d" alt=""><figcaption><p>Page Access Token</p></figcaption></figure>

Check the properties of this page access token in **Access Token Debugger**:

1. **App ID**: the app id mentioned in the prerequisite section.&#x20;
2. **Type**: page.
3. **User ID**: you, a person who has admin right to the Facebook Page mentioned in the prerequisite section
4. **Expires:** in about 2 months.
5. **Scopes:** includes predetermined added permissions.&#x20;

Then, click the **'Authorize'** button on the pop-up channel setting.

<figure><img src="https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FFo6R2gkN4ZgBiM9MY3E9%2FAuthorize%20Channel%20edit.png?alt=media&#x26;token=a4e0703b-f6f1-4a3c-8e98-5f07618da8dc" alt=""><figcaption><p>Authorize Channel</p></figcaption></figure>

Select your Instagram business account.

<figure><img src="https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2Fjz9sLILz7WR4u9pu4hfG%2Fselect%20instagram%20business%20edit.png?alt=media&#x26;token=10f41927-cca5-4f63-9a3a-766c0035a9fa" alt=""><figcaption><p>Select Insagram Business Account</p></figcaption></figure>

Then, select your Facebook page and click **'Next'**.

<figure><img src="https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FnLNN95NoQNG0xjRcMS3a%2FSelect%20facebook%20page%20edit.png?alt=media&#x26;token=89c0170d-56d9-4670-8cd8-47ee1a99d078" alt=""><figcaption><p>Select Facebook Page</p></figcaption></figure>

Check permissions to an add Instagram channel then click 'Done'.

<figure><img src="https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FdVSsLzz8wqXUltbBeYQy%2Fpermission%20allow%20instagram%20edit.png?alt=media&#x26;token=e7e87428-ea02-4467-bbec-e27b60e7de75" alt=""><figcaption></figcaption></figure>

A pop-up will appear to add your Instagram business then click 'Add Page Channel'.

![Add Page Channel](https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FnGVBkISDjNsliLdpU5Oi%2Fadd%20isntagram%20page%20channel%20edit.png?alt=media\&token=3c0bcba9-b42c-441b-8342-1125ed0fd35e)

After authorize successfully, click the **'Save'** button.

<figure><img src="https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FAhS1PIKNqzCMv64BvFDH%2Fsave%20channel%20setting%20ig%20edit.png?alt=media&#x26;token=546fbddf-fc2f-4965-a71e-45027271026f" alt=""><figcaption><p>Save Channel Setting</p></figcaption></figure>

Your Instagram business channel **"saas\_dolphins"** has been successfully created.&#x20;

![Instagram Channel Created](https://765826444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYDAnLjpg2T8z2BplJOS%2Fuploads%2FsydD7a1fY9sejtDIqI5C%2Fadded%20instagram%20channel%20edit.png?alt=media\&token=e0c6f4d7-74bc-4095-988d-89da0751995a)

**Component Explanation:**

<table><thead><tr><th width="111.66666666666666">No.</th><th width="229">Component</th><th>Description</th></tr></thead><tbody><tr><td>1.</td><td>Channel Name</td><td>Name of your Instagram Business 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.</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>
