title: Rendering Facebook social plugin using ajax
body: <p>I've included the JavaScript API codes (below) just below the <code>&lt;body&gt;</code> tag.</p>
  
  <pre><code>&lt;div id="fb-root"&gt;&lt;/div&gt;
  &lt;script&gt;(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 = "//connect.facebook.net/en_US/all.js#xfbml=1&amp;appId=&lt;APP_ID&gt;";
    fjs.parentNode.insertBefore(js, fjs);
  }(document, 'script', 'facebook-jssdk'));&lt;/script&gt;
  </code></pre>
  
  <p>I've also added the respective markup for like and comment box.</p>
  
  <p>The social plugins rendered fine when loaded directly from the browser but not on the pages loaded using ajax.</p>
  
  <p>What do I need to do to make sure the social plugins are rendered in the pages loaded through ajax?</p>