Social Networking Like & Follow Code

December 5, 2012

Facebook :
 <div class=”fb-like” data-href=”http://www.facebook.com/abc&#8221; data-send=”true” data-width=”450″ data-show-faces=”true”></div>
===============================================================
<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_US/all.js#xfbml=1”;
fjs.parentNode.insertBefore(js, fjs);

}(document, ‘script’, ‘facebook-jssdk’));</script>
Source : http://developers.facebook.com/docs/reference/plugins/like/
===============================================================

Linkedin :
<script src=”//platform.linkedin.com/in.js” type=”text/javascript”></script>

<script type=”IN/FollowCompany” data-id=”http://www.linkedin.com/company/abc&#8221; data-counter=”right”></script>
Source : http://developer.linkedin.com/plugins/follow-company
===============================================================

Google + :
<!– Place this tag where you want the +1 button to render. –>
<div class=”g-plusone” data-annotation=”inline” data-width=”300″></div>
<!– Place this tag after the last +1 button tag. –>
<script type=”text/javascript”>
function() {
var po = document.createElement(‘script’); po.type = ‘text/javascript’; po.async = true;
po.src = ‘https://apis.google.com/js/plusone.js&#8217;;
var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(po, s);
})();

</script>

Source: https://developers.google.com/+/plugins/+1button/#target-url