4.4 Facebook Channel

This topic describes the systematic instruction to Facebook Channel option.

  1. Create a Facebook account for the Bank. Login to Facebook with credentials.
  2. Create a new page.

  3. Navigate to developer link and create an application as shown below

  4. Navigate to dashboard page and note the app secret as it will require in future steps.

  5. Navigate to Messenger → Settings page from left panel and in token generation section select the page created previously. Note the page access token.

Create Facebook Channel in ODA

  1. In ODA ,click channels in the left panel/menu and then click on users.

  2. Next, click Add Channel to open the Create Channel dialog.
  3. Choose Facebook Messenger as the channel type.

  4. In the Page Access Token field, paste the page access token that you generated previously in the Set Up Facebook Messenger procedure.
  5. In the App Secret field, paste the app secret that you copied previously in the Set Up Facebook Messenger procedure and click Create.
  6. In the Channels page, copy both the Verify Token and WebHook URL and paste them somewhere convenient on your system. You’ll need these to configure the Facebook webhook.

  7. Select the digital assistant or skill that you want to associate with the channel. Switch on the Channel Enabled control to enable it.

Configure the Facebook Messenger Webhook

  1. In Facebook Messenger, be sure that you’ve selected the project that you initially created for the webhook.
  2. Click Messenger and then choose Settings .
  3. Click Subscribe to Events to open the New Page Subscription dialog.
  4. Copy the Webhook URL that you got from the Digital Assistant Channels page and paste it in the CallBack URL field in the New Page Subscription dialog.
  5. Copy the Verify Token generated by Digital Assistant and paste it into the Verify Token field.

  6. Under Subscription Fields, select the messages and messaging_postbacks callback events.The messages event is triggered whenever someone sends a message to your Facebook page.
  7. Click Verify and Save.
  8. In the Webhooks section of the Messenger settings, select the Facebook page for your digital assistant (or standalone skill).Click Subscribe.

Validating configurations

  1. Login to Facebook → Navigate to the page and click → Send message

  2. Click Get Started in the chat window → You should receive welcome message from ODA
  3. Enquire about account balance → OTP should be received on the registered email address of the party in core banking.