XF 1.4 Adding Facebook Like Button for Web

Skylined

Well-known member
I'm trying to add a Facebook Like Button for Web in my homepage but I don't know where to put the 1st part of it.
I know where to put the 2nd part.

Can you guys please help me?


1. Include the JavaScript SDK on your page once, ideally right after the opening <body> tag.
Code:
<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/sdk.js#xfbml=1&version=v2.3";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>


2. Place the code for your plugin wherever you want the plugin to appear on your page.
Code:
<div class="fb-like" data-href="https://www.facebook.com/mtburuguay" data-layout="standard" data-action="like" data-show-faces="true" data-share="false"></div>
 
Top Bottom