Facebook comment
  • Hello,


    I copy the code from facebook an i put on my web site.
    the problem is all my comment is the same.
    i would like to have different comment per articlel

    how to make this? 
    Post edited by Jakub Górnicki at 2012-01-29 03:38:15
  • 1 Comment sorted by
  • You have to set url of active article. Full code looks like this:

    <div id="fb-root"></div>
    <script>(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";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>

    <div class="fb-comments" data-href="http://{{ $gimme->publication->site }}{{ uri }}" data-num-posts="10" data-width="675"></div>
    Post edited by Tomasz Rondio at 2012-01-29 07:53:12