skip to Main Content

i am using twitter bootstrap. i added the code for facebook like button but that is not display for my web page.

        <div id="fb-root"></div>
            (function(d, s, id) {
                var js, fjs = d.getElementsByTagName(s)[0];
                if (d.getElementById(id))
                js = d.createElement(s);
       = id;
                js.src = "//";
                fjs.parentNode.insertBefore(js, fjs);
            }(document, 'script', 'facebook-jssdk'));
        <div class="col-xs-12">
        <div class="fb-like" data-href=""data-layout="standard" data-action="like"data-show-faces="true" data-share="true"></div>



  1. Facebook icons and like buttons are hidden by adblockers.

    If you use one try to disable it on your page and see if it appears.

    Login or Signup to reply.
  2. Perhaps there has to be a space before the data-layout (after the href value)?

    <div class="fb-like" data-href="" data-layout="standard" data-action="like"data-show-faces="true" data-share="true"></div> 
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top