title: How to show Facebook comments using JavaScript?
body: <p>I want to add Facebook comments using JavaScript (jQuery) to be able to customise the <code>data-href</code>. I used the following code, but nothing appear in the <code>div col2</code>.</p>
  
  <pre><code>$("#col2").html(
      id+"&lt;div class='fb-comments' data-href='http://127.0.0.1/GazaPlaces/' data-num-posts='2'"+
      " data-width='500'&gt;&lt;/div&gt;"
  );
  </code></pre>
  
  <p>What is the solution?</p>