In a previous article we covered adding social sharing buttons to our Rails applications, but what if we are using another language or plain HTML? Fortunately this is easy. First let's add a link to the fontawesome CDN to our page by adding this to the html head element:

<link href="" rel="stylesheet">

This will give us some stylish icons to go with our sharing buttons.

Next we need to create the sharing links themselves. Add the following code to the body of your document where you wish to have the sharing links listed:

<!-- Twitter -->
<a href="" title="Share on Twitter" target="_blank" class="btn btn-twitter"><i class="fa fa-twitter"></i> Twitter</a>
 <!-- Facebook -->
<a href="" title="Share on Facebook" target="_blank" class="btn btn-facebook"><i class="fa fa-facebook"></i> Facebook</a>
<!-- Google+ -->
<a href="" title="Share on Google+" target="_blank" class="btn btn-googleplus"><i class="fa fa-google-plus"></i> Google+</a>
<!-- StumbleUpon -->
<a href="" title="Share on StumbleUpon" target="_blank" data-placement="top" class="btn btn-stumbleupon"><i class="fa fa-stumbleupon"></i> Stumbleupon</a>
<!-- LinkedIn --> 
<a href="" title="Share on LinkedIn" target="_blank" class="btn btn-linkedin"><i class="fa fa-linkedin"></i> LinkedIn</a>

Simply replace SHAREMESSAGE in the above urls with the text or url you wish to share and you are good to go. You can customize the title, look and feel quite easily using HTML and CSS. That's it! Thanks for reading!