Last updated: 2021-04-29
How to deploy your bots on Facebook Messenger
Facebook Messenger is one of the popular social media channels to interact with your customers and boost your market. A conversational interface coupled with artificial intelligence, crushes a business’s conversion obstacles and enables instant customer service. You can integrate your bots with Facebook Messenger and let the bot handle all the questions that customers raise through your Facebook page. This solution article will walk you through how you can integrate Facebook Messenger with your Freddy Self-service bot.
``` Due to their efforts to comply with Europe and Japan’s privacy guidelines, Facebook will place restrictions on its usage of the Messenger API. These restrictions will apply for Europe from December 16th, 2020, and for Japan from April 14th, 2021. Click here to learn how this might impact you. ```
Prerequisites
Step 1: Create a new Facebook page with a button to enable customers to get in touch with you. You can skip this step if you already have set it up.
Step 2: Follow the instructions from our solution articles to create and publish a bot with Freddy Self-service. Facebook does not support dropdowns.
Step 3: Go to the Facebook Developer Portal \> Add a New App or select the app to which you want to integrate the bot > Products \> Messenger. Once you've finished setting up Messenger for your app, it'll appear on the sidebar when you visit your app.

Setting up the Messenger App
1. Add links to your Privacy Policy and Terms of Service, 2. Upload your logo, 3. Specify your category of business, 4. Choose the Business Use
*
*

Integrating your bot with Facebook Messenger
1. Select the bot that you want to integrate with FB Messenger 2. Fill in the FB messenger token
To get the messenger token, open the respective bot > Generate Script from the sidebar > Generate Script button > you'll find the bot hash as part of the script where it is a string of characters that follows the "data-bot-hash".

3. Fill in the API token from the previous step 4. Fill in the page ID from the previous step 5. Fill in your Messenger URL (usually, it is m.me/pageid)

India DC: https://api.in-freshbots.ai/api/facebook/chat
Europe DC: https://api.euc-freshbots.ai/api/facebook/chat
US DC: https://api.freshbots.ai/api/facebook/chat
Australia DC: https://api.au-freshbots.ai/api/facebook/chat
``` Note: You can refer to this page for more documentation of Facebook Developers: https://developers.facebook.com/docs/messenger-platform/introduction ```
Please write to freshbots-support@freshworks.com if you have any more questions, we'll be happy to help you.