Facebook Deployment

iconfinder_facebook_circle_color_107175.png

SmartBot360 makes it easy to have your bots deployed on Facebook.

Step 1

First in the CHATBOTS tab click on the bot you want to deploy on Facebook. Click ADD FACEBOOK DEPLOYMENT -> Advanced Settings -> Verify Token -> Generate. This will generate a Facebook token. Also, you will see the Callback URL here. We will need to use these in the later steps.

Step 2

Create your Facebook app by visiting this page https://developers.facebook.com/docs/development/create-an-app.

You must create a Facebook developer account. Make sure to choose the app type as Manage Business Integrations and the App Purpose as Clients.

Step 3

Once your account and App has been created go to Setting button on the left hand side and click under Basic. Copy the App ID, App Secret, and the App name. Enter the information in the same dialog that was opened from clicking ADD FACEBOOK DEPLOYMENT -> Advanced Settings.

Screenshot from 2021-01-05 22-36-33.png
 

Step 4

In your App Dashboard click the on left hand side under Settings -> Basic. Fill in the Privacy Policy URL box with a link to your privacy policy.

Step 5

Then click the on left hand side under App Review -> Permissions and Features. Request advanced access for the ‘email’, ‘public_profile’, and ‘pages_messaging’ permissions. If required (blue alert box shown near the top), complete the Data Use Checkup.

Step 6

After that, on the left hand side, click on Add Product. Set up the Facebook login product. Then click on Facebook Login -> Settings. Toggle on the ‘Login with the Javascript SDK’ option and enter an allowed domain in the box below it ( e.g. https://demo1.smartbot360.com/ ) .

Step 7

Click Add Product again and set up Messenger. Under webhooks, click on the ‘Add Callback URL’ box. Paste the callback URL and token from Step 1. After adding the webhook, click on the ‘Add Subscriptions box. Check ‘messages’ and ‘messaging_postbacks’, then save. If you don’t see the ‘Add Subscriptions’ box, create a page first (step 9) then click the Add or Remove Pages box and add the created page. You should be able to see the ‘Add Subscriptions’ box now.

Step 8

On the top, you may now switch the app mode from Development to Live if you wish to.

Step 9

You need to create a page on Facebook where the bot will be deployed on. Click on this link to create a Facebook page

https://www.facebook.com/pages/create/?reftype=site_footer. After creating the page, deploy the bot from the chatbot dashboard. Once you deploy your bot on Facebook you will have an option to select which page to deploy it on. Choose the page you have just created, or an existing page that you want the bot on.

Screenshot from 2021-01-05 22-49-59.png
 

Step 10

Your bot will now be deployed on the Facebook page you have selected. You can test the functionality by sending a Facebook direct message to the page.