Add Live Chat with Facebook Messenger

Facebook Messenger is the easiest way to embed Live Chat to your site! These chats are connected to your visitor's Facebook Messenger account, so they'll always have access to it. Here's what your visitors will see on your site:



You'll need:


Got all that? Great, let's get to it!


1. Get your Facebook App ID.

This is a long number. For example, Strikingly's own App ID is 138736958550286. You will see your App ID on this page:


2. Get your Facebook Page ID.

This is another long number. For example, Strikingly's Page ID is 211998345516663. To find your Page ID, go to your Facebook Page, and follow the next steps:

  1. Click the About tab below your Page's cover photo, then click Page transparency.
  2. Click See all, then click Go to Ad Library.
  3. Find view_all_page_id= in the address bar of your browser. Your Page ID is the number immediately following this.


3. In your Facebook Page Admin Settings, go to "Messenger Platform", and add your domain to the whitelist (must use https!).

Click save when you're done! Here's what it looks like:


4. Add Custom Code to your Strikingly site.

Paste the following code into Settings > Advanced > Custom Code > Footer Code. Make sure to REPLACE the red bolded parts with your own Facebook App ID and Facebook Page ID!


  window.fbAsyncInit = function() {
      appId : 'YOUR_APP_ID',
      autoLogAppEvents : true,
      xfbml : true,
      version : 'v2.11'
  (function(d, s, id){
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) {return;}
  js = d.createElement(s); = id;
  js.src = "";;
  fjs.parentNode.insertBefore(js, fjs);
  }(document, 'script', 'facebook-jssdk'));
<div class="fb-customerchat"


5. Publish your site. You should see the Messenger Live Chat Widget in the corner!


In case you need assistance, shoot us a line at or chat with us.

Have more questions? Submit a request