You are here

facebook-comments-block.html.twig in Facebook Comments Social Plugin 8

<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/{{ lang }}/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, "script", "facebook-jssdk"));</script>
<div class="fb-comments {{ class }}" data-href="{{ url }}" data-num-posts="{{ amount }}" data-width="{{ width }}" data-colorscheme="{{ style }}"></div>

File

templates/facebook-comments-block.html.twig
View source
  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/{{ lang }}/all.js#xfbml=1";
  7. fjs.parentNode.insertBefore(js, fjs);
  8. }(document, "script", "facebook-jssdk"));</script>
  9. <div class="fb-comments {{ class }}" data-href="{{ url }}" data-num-posts="{{ amount }}" data-width="{{ width }}" data-colorscheme="{{ style }}"></div>