title: Facebook sdk console error
body: <p>Im trying to add this: <a href="https://developers.facebook.com/docs/messenger-platform/discovery/customer-chat-plugin" rel="nofollow noreferrer">https://developers.facebook.com/docs/messenger-platform/discovery/customer-chat-plugin</a></p>
  
  <p>All okey , everything works but it shows error in console.</p>
  
  <p><a href="https://i.stack.imgur.com/F8DYm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/F8DYm.png" alt="enter image description here"></a></p>
  
  <p>How to fix it?
   Didn't find any information in google.</p>
  
  <pre><code>    /* Facebook messenger plugin  */
  
      window.fbAsyncInit = function () {
          FB.init({
              appId: '**',
              autoLogAppEvents: false,
              xfbml: true,
              version: 'v4.0'
          });
      };
  
      (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.js";
          fjs.parentNode.insertBefore(js, fjs);
      }(document, 'script', 'facebook-jssdk'));
  }
  </code></pre>
  
  <p>code used.</p>