Uncategorized

Facebook Customer Chat Plugin Not Working? Try This

If the Facebook messenger customer chat plugin is not working on your website, it might be as result of the change in how you must load the JS SDK if you want to be able to use the Customer Chat Plugin.

Since January 8th, 2019, Facebook have stopped users from requesting for the Customer Chat Plugin with the following URL: https://connect.facebook.net/en_US/sdk.js.

It now requires using https://connect.facebook.net/en_US/sdk/xfbml.customerchat.js as the js.src argument instead of https://connect.facebook.net/en_US/sdk/sdk.js. If you use the latter, the Customer Chat Plugin soon will no longer load on your website.

If the Facebook Javascript SDK is already included in your website, all you’ll need to do is set “js.src” equal to https://connect.facebook.net/en_US/sdk/xfbml.customerchat.js as shown in the code snippet below :

(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "https://connect.facebook.net/en_US/sdk/xfbml.customerchat.js";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));

The Facebook Customer Chat JavaScript SDK allows you to access Facebook’s Javascript SDK as well as control certain behaviors of the customer chat plugin such as opening and closing the dialog. These controls are dynamic and can be triggered without a page refresh.

https://connect.facebook.net/en_US/sdk/xfbml.customerchat.js requests a version of the Facebook Javascript SDK that includes the Customer Chat SDK. With this URL, you will still be able to access all of the Facebook Javascript SDK plus all features of the Customer Chat SDK.

If you have both SDKs on your site, the Facebook customer chat plugin will not render on your website. So, you have to completely remove the old SDK from your website.

About Facebook Customer Chat Plugin

The Facebook Messenger customer chat plugin allows you to instantly communicate with your website visitors via instant messaging. It allows your customers to interact with your business anytime with the same personalized, rich-media experience they get in Facebook Messenger.

Once the Facebook customer chat widget is added to your website, there will be a small Messenger chat bubble that loads with your website in the lower right corner. Your customers can click on it at anytime and message you. It works on both mobile and desktop.

Recommended : How To Add Facebook Chat Plugin To WordPress sites

Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

The Latest

Copyright © 2019 Chatbotinoo.

To Top