Facebook Integration

Customer Channel Manager provides out-of-the-box integration with Facebook Messenger.

Login to your Facebook developer account through PC.

Follow this documentation to create Facebook app.

Click add product button on app and setup Messenger then generate a Page access token to start using the platform APIs. Copy Page access token and set it in docker variable FACEBOOK_VERIFY_TOKEN.

To register webhook click on Add Callback URL button and use this callback url <fqdn>/webhook?hub.verify_token=<FACEBOOK_VERIFY_TOKEN>&hub.challenge=CHALLENGE_ACCEPTED&hub.mode=subscribe and provide FACEBOOK_VERIFY_TOKEN in verify token field.

After registering webhook successfully click on Add Subscriptions button and subscribe messages field.


Environment Variables for Facebook Integration

Variable Name

Description

FACEBOOK_GRAPH_API_URL

https://graph.facebook.com/v4.0

FACEBOOK_VERIFY_TOKEN

FACEBOOK_VERIFY_TOKEN

FACEBOOK_USERNAME

Username shown to customer with each message.

FILE_ENGINE_URL

File engine url to upload files and images to.

ERROR_MESSAGE_RESPONSE

Message shown in case message not processed successfully or for any error.