Skip to content

CX Facebook Messenger

In order to integrate with Facebook Messenger, its needed create a Facebook App.

Facebook App

Go to Facebook Developer Portal: https://developers.facebook.com

cx_facebook_home.png

Create App

Lets press Create App button

cx_facebook_create_app.png

Select this one

facebook_app_other.png

Select this one

facebook_select_type_bussiness.png

Complete form - App name - Contact email - Not select a Business Manager account

facebook_app_complete_form.png

Provide App ID and App Secret

Provide App ID and App Secret with plaform administrators

cx_facebook_config_app_settings_basic.png

Note for administrators:

FB_VERIFY_TOKEN=You must generate a token to use here which will be used later for callbacks FB_APP_SECRET=App Secret FB_APP_ID=App ID

Configure App

Add Product: Facebook Login for Business

Configure the product Facebook Login for Business: - Enable Login with the JavaScript SDK - Consult with the administrator the CX Channels URL domain to fill here

facebook_product_facebook_login_config.png

Add Product: Messenger

cx_facebook_add_product_messenger.png

Now its time to add the Facebook Page that we have

cx_facebook_add_product_messenger_2.png

The nexts steps its to retrieve the Facebook Page from the Facebook account

cx_facebook_add_product_messenger_4.png

Select Page

cx_facebook_add_product_messenger_5.png

Result as follow

cx_facebook_add_product_messenger_6.png

Configure Callback URL

cx_facebook_add_product_messenger_callback_1.png

Complete with: - Callback URL: https:///bot - Verify token: generated above

cx_facebook_add_product_messenger_callback_2.png

Result as follow

cx_facebook_add_product_messenger_callback_3.png

Configure Callback Subscriptions

Press Add Subscription

cx_facebook_add_product_messenger_callback_subscriptions_1.png

Select: - messages - messaging_postbacks - message_deliveries - message_reads - message_echoes

cx_facebook_add_product_messenger_callback_subscriptions_2.png

Result as follow:

cx_facebook_add_product_messenger_callback_subscriptions_3.png

Facebook Verification

  1. Go to App Review -> Requests
  2. Click on Request Permissions or Features cx_facebook_requests.png

On App Review -> Permissions and Features click on Request advanced access on: pages_messaging Business Asset User Profile Access pages_show_list pages_manage_metadata

And then click on Continue requests

cx_facebook_continue.png

Select yes on the modal asking about enable multiple bussines clients

cx_facebook_permission_type.png


Go to Requests. In this step we ask to Facebook the request of the above 4 advanced access permissions

cx_facebook_requests_app_review.png

Its needed a business verification

cx_facebook_business_verification.png

cx_facebook_business_verification_start.png