Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Facebook Like Button

edited April 2012 in Vanilla 2.0 - 2.8


I'd like to put fb like button at all pages before content with pocket plugin. But I don't know where to put the Javascript SDK.

  1. Include the JavaScript SDK on your page once, ideally right after the opening tag.

<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); = id; js.src = "//"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>

  1. Place the code for your plugin wherever you want the plugin to appear on your page.

<div class="fb-like" data-href="" data-send="true" data-width="450" data-show-faces="true"></div>

Help me! Thank you.



  • ok i got it...just use this code on my pocket body :)

    <script>var flike = { url : "", buttonType : "standard", width : "450", height : "57" }</script><script src=""> </script>

  • 422422 Developer MVP
    edited April 2012

    Why do that? Theres already a plugin.

    There was an error rendering this rich post.

  • @422 the plugin just on the discussion post rite? I'm using share this plugin for discussion post

  • i mean the like button just for my main url

  • 422422 Developer MVP


    There was an error rendering this rich post.

Sign In or Register to comment.