Skip to content

Instantly share code, notes, and snippets.

@faisalman
Created June 4, 2011 22:42
Show Gist options
  • Save faisalman/1008444 to your computer and use it in GitHub Desktop.
Save faisalman/1008444 to your computer and use it in GitHub Desktop.
HTML markup for adding popular social sharing buttons (Tweet, Share, & +1)
<!--
1. Google +1 button
- see http://www.google.com/webmasters/+1/button/
-->
<g:plusone size="medium"></g:plusone>
<script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script>
<!--
2. Twitter Tweet button
- see http://twitter.com/about/resources/tweetbutton/
-->
<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="fyzlmn">Tweet</a>
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
<!--
3. Facebook Share button
- see http://developers.facebook.com/docs/reference/plugins/like/
- code below is the old version. but still works.
-->
<a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php">Share</a>
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
<!--
4. LinkedIn Share button
- see http://www.linkedin.com/publishers
-->
<script type="text/javascript" src="http://platform.linkedin.com/in.js"></script>
<script type="in/share" data-counter="right"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment