title: Facebook comment plugin
body: <p>im trying to add facebook comment plugin to each picture of a simple photo gallery but it doesnt seem to work when i add it to the loop, here's the code of the page:</p>
  
  <p>`
      
      
      
      
      Affichages
      </p>
  
  <pre><code>&lt;/head&gt;
  
  
  &lt;body&gt;
  
  &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/fr_FR/sdk.js#xfbml=1&amp;appId="id"&amp;version=v2.0";
  fjs.parentNode.insertBefore(js, fjs);
  }(document, 'script', 'facebook-jssdk'));&lt;/script&gt;
  
  
  &lt;?php
  $folder = 'img/';
  $filetype = '*.*';
  $files = glob($folder.$filetype);
  $count = count($files);
  
  $sortedArray = array();
  for ($i = 0; $i &lt; $count; $i++) {
  $sortedArray[date ('YmdHis', filemtime($files[$i]))] = $files[$i];
  
  }
  
   krsort($sortedArray);
    echo '&lt;table&gt;';
   foreach ($sortedArray as &amp;$filename) {
   #echo '&lt;br&gt;' . $filename;
   echo '&lt;tr&gt;&lt;td&gt;';
   echo '&lt;a name="'.$filename.'" href="#'.$filename.'"&gt;&lt;img src="'.$filename.'" /&gt;&lt;/a&gt;';
    echo substr($filename,strlen($folder),strpos($filename, '.')-strlen($folder));
   echo '&lt;/td&gt;&lt;/tr&gt;';
   }
   echo '&lt;/table&gt;';
   ?&gt;
   &lt;/body&gt;
  &lt;/html&gt;`
  </code></pre>
  
  <p>thanks for your time ! :)</p>