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.
Options

Facebook Like Button

edited April 2012 in Vanilla 2.0 - 2.8

Hello,

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); js.id = id; js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1"; 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="http://forum.caricyber.com" data-send="true" data-width="450" data-show-faces="true"></div>

Help me! Thank you.

Tagged:

Answers

  • Options

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

    <script>var flike = { url : "http://forum.caricyber.com", buttonType : "standard", width : "450", height : "57" }</script><script src="http://orkut-share.googlecode.com/svn/trunk/flike.js"> </script>

  • Options
    422422 Developer MVP
    edited April 2012

    Why do that? Theres already a plugin.

    http://vanillaforums.org/addon/liked-plugin

    There was an error rendering this rich post.

  • Options

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

  • Options

    i mean the like button just for my main url

  • Options
    422422 Developer MVP

    Ahhh.

    There was an error rendering this rich post.

Sign In or Register to comment.