Witam,
w pliku xsl muszę wstawić komentarze Facebook na moją stronę, mam wpisy z pewnymi produktami i do każdego wpisu powinny być inne komentarze. Komentarze działają ale w każdym wpisie są te same komentarze, jak wpisze coś w wpisie X to w wpisach Y,Z itd również są.

  1. <div id="fb-root"></div>
  2. <script>(function(d, s, id) {
  3. var js, fjs = d.getElementsByTagName(s)[0];
  4. if (d.getElementById(id)) return;
  5. js = d.createElement(s); js.id = id;
  6. js.src = "//connect.facebook.net/pl_PL/all.js#xfbml=1";
  7. fjs.parentNode.insertBefore(js, fjs);
  8. }(document, 'script', 'facebook-jssdk'));</script>
  9.  
  10. <div class="fb-comments" data-href="ADRES MOJEJ STRONY" data-num-posts="2" data-width="470"></div>
  11.  


znalazłem tylko takie coś w php
  1. <?PHP
  2. $currentlink = $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
  3. echo "<fb:comments href='$currentlink' num_posts='10' width='570'></fb:comments>";
  4. ?>

czy wie ktoś co zastosować w moim przypadku ?