Facebook Gateway

How do I connect two facebook channels in one app? in this case, 3Dolphins uses the channel gateway feature. The channel gateway feature allows data to flow from one App to several channels according to the pages.

for example case :

When there is a message from the customer on the Facebook page.

Customer Message

Facebook Page 1

Hi, What is 3Dolphins Chatbot?

Facebook Page 2

Hello, what are the advantages of the 3Dolphins chatbot?

Message from each page will incoming to the same apps, then the message will be forwarded to the gateway channel. Well, this gateway channel will stream customer messages to the appropriate channel message on the Facebook page. for example, when there is a message on Facebook page 1, the gateway channel will automatically send the message to the Facebook page 1 channel.

To use channel gateway, please follow this steps :

Start channel gateway, enter query ‘/start-gateway.sh’.

Settings webhooks on the apps. (On the right side menu, select ‘Webhooks‘, click ‘Edit Subscription‘ button).

Enter callback URL ‘https://channel_url/gateway/callback’.

Filed component explanation for ‘page subscription’:

  • Callback URL: The URLs that Auth invokes after the authentication process

    • Use the following Callback URL: https://channel_url/gateway/callback

    • For example: https://adapter.3dolphins.ai/facebook/callback

  • Verify Token: Label for token verification

    • For example: Facebook Gateway

To stop channel gateway, enter query ‘/stop-gateway.sh’

Last updated