Some Shopify themes still include the older all.js or fbevents.js version of the Facebook SDK. These versions are a couple years old, and do not support the new Messenger features.

For your shop to work with ShopMessage, you need to use the newer sdk.js, which is smaller, faster, and won't break any existing functionality.

Option 1: Have the ShopMessage team upgrade it for you

Our engineers can make this change for you if you grant ShopMessage access to collaborate on your theme.

Option 2: Upgrade to the new Facebook SDK

Here is how to do it:

Find the existing Facebook SDK code

You should look for a snippet that looks like the following code. This is mostly likely in your theme.liquid file.

<div id="fb-root"></div>
  <script>(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id; js.async=true;
    js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&status=0";
    fjs.parentNode.insertBefore(js, fjs);
  }(document, 'script', 'facebook-jssdk'));</script>

Replace all.js with sdk.js

You just have to find the text in line 6 that says all.js, and replace it with sdk.js.

It's as easy as that!

Option 3: Remove the old SDK

You could just completely remove the old SDK from your Shopify theme, again likely in the theme.liquid file of within your theme. ShopMessage will automatically add the newer version when it loads.

If you have any questions, shoot us a note a [email protected]

Did this answer your question?