All my markup is not rendering and I debugged to find out facebook all.js is not loading into the page. I tested with a different installation and it loads. I need to debug further, so which part of your module exactly is responsible for loading/linking to this script?

Comments

shadysamir’s picture

I meant all my <fb:...> markup

shadysamir’s picture

I found this DIV at the end of the working site:

<div id="fb-root" class=" fb_reset"><script src="http://connect.facebook.net/en_US/all.js" async=""></script><div style="position: absolute; top: -10000px; height: 0px; width: 0px; "></div></div>
<script type="text/javascript">
        window.fbAsyncInit = function() {
          FB.init({
            appId  : '********************', //removed for this post
            status : true, // check login status
            cookie : true, // enable cookies to allow the server to access the session
            xfbml  : true,
            logging: '0'
          });
          
          jQuery.event.trigger('fb:init');
        };
      
        (function() {
          var e = document.createElement('script');
          e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
          e.async = true;
          document.getElementById('fb-root').appendChild(e);
        }());
</script>

This code is not on the other site where fb markup is not rendering

shadysamir’s picture

Status: Active » Closed (works as designed)

It wasnt the theme's bug. There was no <?php print $closure ?> at all. This explains a lot of other issues. Time to have a talk with the designers.