Support » Plugin: WP-FB-AutoConnect » [Plugin: WP-FB-AutoConnect] Not Loading Asynchronously

  • Resolved optimistguide


    The Facebook Connect javascript is not loading asynchronously for me. Although, it looks like it should be based on the code it creates. Facebook Connect’s support, at, shows how to set up the script correctly.

    Your plugin creates the following code:

    <div id="fb-root"></div> <script type="text/javascript">window.fbAsyncInit = function()
                appId: '338982446159202', status: true, cookie: true, xfbml: true, oauth:true, channelUrl: ''
          (function() {
            var e = document.createElement('script');
            e.src = document.location.protocol + '//';
            e.async = true;

    Facebook says to code like this:

    <div id="fb-root"></div>
      /* All Facebook functions should be included
         in this function, or at least initiated from here */
      window.fbAsyncInit = function() {
        FB.init({appId: 'your app id',
                 status: true,
                 cookie: true,
     	     xfbml: true});
        FB.api('/me', function(response) {
      (function() {
        var e = document.createElement('script'); e.async = true;
        e.src = document.location.protocol +

    Any idea of why the script in your plugin is not loading asynchronously?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP-FB-AutoConnect] Not Loading Asynchronously’ is closed to new replies.