Facebook button doesn't works

Elegant Joomla template designed especially for both professional and personal website presentation.
GK User
Wed Oct 03, 2012 2:32 pm
Hi all!
I'm using post note template in this site www.disfrutalazarza.es
Everything is ok but the Facebook share button in the articles. The twitter and Google plus appear without problems but not the Facebook one.

COuld you help me please? Thanks in advance
User avatar
Fresh Boarder

Wed Oct 03, 2012 7:24 pm

This issue is not an only case. Looks like fb changed a way to show fb like button on pages. Please edit file:

/html/com_k2/templates/default/item.php and replace the code which You see for fb button now to:

Code: Select all
      <div class="itemFacebookButton">
         <div id="fb-root"></div>
         <script type="text/javascript">
            (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#appId=177111755694317&xfbml=1";
              fjs.parentNode.insertBefore(js, fjs);
            }(document, 'script', 'facebook-jssdk'));
         <div class="fb-like" data-send="false" data-width="200" data-show-faces="true"></div>
User avatar

Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.