Updated on 2024-10-12 GMT+08:00

Creating a Facebook Channel

Prerequisites

The connection to Facebook has been completed. If the connection has not been completed, perform the following steps to complete the connection:

  1. Visit https://developers.facebook.com/apps and use a Meta for Developers account to log in.

    If no Meta for Developers account is available, create one.

  2. Create an app.
    1. Click Other, select the Business type, customize the app name, and retain other default settings.
    2. Click Set up corresponding to the Messenger product to add it to the app.

  3. Create a public home page.

  4. Bind the new public home page.

  5. Refresh the application page to obtain the bound home page ID and password.

    • The number in the red box is the ID of the public home page, which corresponds to the value of Channel ID in the AICC.
    • The tokens correspond to the values of accessToken and refreshToken in the AICC.
  6. Obtain the ID and secret of the created app.

    • The value of App ID corresponds to the value of Client ID in the AICC.
    • The value of App secret corresponds to the value of appKey in the AICC.
  7. Set access permissions.
    1. Access https://developers.facebook.com/tools/explorer/.
    2. Set the parameter on the top of the page to me?fields=id,name.
    3. Set Meta App to the app created in 2.
    4. Add the following permissions under Permission:
      • pages_show_list
      • pages_messaging
      • pages_read_engagement
      • pages_manage_metadata
      • pages_read_user_content
      • pages_manage_posts
      • pages_manage_engagement
    5. Set User or Page.
      1. Click and choose Get Page Access Token. The public home page is displayed.
      2. Click Continue as XXX, and select the public home page created in 3.
      3. Click Continue.
      4. Click Save.
      5. Click again and select the new public home page.
    6. Click Submit. The permissions are added successfully.

  8. Set the validity period of the access token to three months.
    1. Access https://developers.facebook.com/tools/debug/accesstoken.
    2. Enter the access token obtained in 4 and click Debug.

      If the debugging is successful, the following information is displayed:

      • The value of Type is Page, not User.
      • The value of Expires is Never.
      • The value of Data Access Expires is about three months later.
      • The permissions under Granular Scopes contain at least the permissions added in 6.

Context

None

Procedure

  1. Sign in to the AICC as a tenant administrator and choose > Account Post.
  2. Click Configure Channel and then click New.
  3. In the Create Channel dialog box, set parameters based on Table 1.

    Table 1 Parameters for creating a channel

    Parameter

    Description

    Channel Name

    Enter a customized value.

    Channel Configuration

    Select Facebook.

    Channel ID

    Public home page ID obtained in 5.

    Client ID

    App ID generated in 6.

    appKey

    App key generated in 6.

    accessToken

    Tokens generated in 5.

    refreshToken

    ApiFabricAK

    Contact the system administrator to obtain the app secret of the app that has subscribed to the facebookNorth, facebookRefreshNoth, and facebookReplyNorth APIs and bound to the tenant space for which the Facebook channel needs to be configured on the Configuration Center > Expansion and Integration > API Management > APP Service > APP Management page, and enter the app ID here.

    ApiFabricSK

    Contact the system administrator to obtain the app secret of the app that has subscribed to the facebookNorth, facebookRefreshNoth, and facebookReplyNorth APIs and bound to the tenant space for which the Facebook channel needs to be configured on the Configuration Center > Expansion and Integration > API Management > APP Service > APP Management page, and enter the app secret here.

    Operation personnel

    Assign employees of the tenant to maintain the publish channel.

    A maximum of 10 operations personnel can be assigned to a channel.

  4. Click Save.