I need Facebook comment for Drupal 7.

Which one can I use?

    <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/fi_FI/all.js#xfbml=1&appId=409074972499544";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

If I use above code it shows me comment of any article for all article. I need to display comment for article.


In Drupal 7 you can use

  • Facebook Comments Box : This module gives your site the ability of using Facebook's Comments Box social plugin. It will create a block just configure only for article. You can check this video

  • Facebook Comments Social Plugin : Implement Facebook commenting with settings on the level of both content type and node.

  • Using Facebook plugin code

    <div class="fb-comments" data-href="[CURRENT_ARTICLE_PAGE_URL]" data-numposts="5" data-colorscheme="light"></div>
    NOTE :

    • YOUR_URL : Updated current URL based on each article.
| improve this answer | |
  • i used it but not work – user3133976 Jan 25 '14 at 9:03
  • I have updated my answer for Facebook plugin code, just need to updated your current URL in the FB plugin code. – inizio Jan 27 '14 at 6:58
  • when Using Facebook plugin code in any article, ans when comment in one article, this comment its show for all article, its wrong it must see in article who's i comment in it – user3133976 Jan 27 '14 at 8:17
  • Thats why you need to use CURRENT ARTICLE PAGE URL, so that the comments will load based on the current page URL. – inizio Jan 27 '14 at 10:02
  • ok but how can i get CURRENT ARTICLE PAGE URL – user3133976 Jan 27 '14 at 12:50

Not the answer you're looking for? Browse other questions tagged or ask your own question.