• im aware that there are plugins etc but i want it in my header,and im aware that the code can be generated from facebook etc, but to get the send button generated it has to be in HTML5 or XFBML. My question is where do i place the generated javascript and how can i wrap the plugin code to align it where i want it in my header. My generated code from facebook is pasted below.. if anyone has suggestions id greatly appreciate thanks…..

    <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/all.js#xfbml=1”;
    fjs.parentNode.insertBefore(js, fjs);
    }(document, ‘script’, ‘facebook-jssdk’));</script>

    <div class=”fb-like” data-href=”http://friendsforfelons.com&#8221; data-send=”true” data-width=”450″ data-show-faces=”true”></div>

The topic ‘Adding a facebook like/share button in HEADER’ is closed to new replies.