Added Facebook Social plugin to AnandVardhan.com
Posted on | April 22, 2010 |
Hi
After yesterday’s launch of Facebooks Social Graph API and Social ‘like’ plugin, I tried my hand on the button in my blog.
It was so cool intergating it in Wordpress.
That’s because Facebook has now made it extremely easy for anyone to integrate Facebook social elements into their website or blog – just copy-paste a single line of HTML code and your site will instantly become Facebook-ready.
Steps:
1. Open Theme Editor
2. Edit Index.php
3. Add following code
<iframe src=”http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink()); ?>&layout=standard&show-faces=true&width=530&height=60&action=like&colorscheme=light” scrolling=”no” frameborder=”0″ allowTransparency=”true” style=”border:none; overflow:hidden; width:530px; height:60px”></iframe>
And Done.
I like it.
Comments
Leave a Reply



