Social sharing buttons

Social sharing buttons becomes essential to all pages available on the web. If you write blog, then you cannot avoid social buttons on your blog. I like to share the social sharing button snippets which I collected from web. I believe, anything is taken from web must be given back to web.


<!-- Place this tag where you want the share button to render. -->
<a href="" class="twitter-share-button">Tweet</a>

<!-- Place this tag after the last share tag -->
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);;js.src=p+'://';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>

Google Plus

<!-- Place this tag where you want the share button to render. -->
<div class="g-plus" data-action="share"></div>

<!-- Place this tag after the last share tag. -->
<script type="text/javascript">
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = '';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);

Facebook Like

<!--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>

<!-- Include the JavaScript SDK on your page once, ideally right after the opening <body> 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>

Hacker News

<!-- Place this tag where you want the share button to render. -->
<a href="" class="hn-share-button">Vote on HN</a>

<!-- Place this tag after the last share tag -->
    (function(d, t) {
        var g = d.createElement(t),
            s = d.getElementsByTagName(t)[0];
        g.src = '//';
        s.parentNode.insertBefore(g, s);
    }(document, 'script'));


<a href="" onclick="window.location = '' + encodeURIComponent(window.location); return false"> <img src="" alt="submit to reddit" border="0" /> </a>

If you want Reddit button with points, then

<script type="text/javascript" src=""></script>


I love to have all my favorites site in Kippt. Those who love kippt, this is for you.

<a href="" class="kippt-save-button" data-url="" data-title="Karri Saarinen on Kippt" data-source="">Save to Kippt</a>

<script>(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);;js.src="";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","kippt-wjs"));</script>


<script src="//" type="text/javascript">
 lang: en_US
<script type="IN/Share" data-counter="right"></script>
Vote on HN

comments powered byDisqus