Friday 8 March 2013

Twitter Followers Box Widget For Blogger

Important: All scripts hosted on widcraft.googlecode.com don't work anymore because Google has blocked that SVN repository.

Facebook provides us a Like Box widget, which is great way to get more likes to your Facebook page from your blog/site. While Twitter developers were just too lazy to create something like that, Mark Carey created a Twitter Fan Box, which works just like the popular Facebook Fan Box, with a few small differences.

Twitter Fan Box displays the 10 most recent followers, which encourages people to follow your Twitter account. When someone clicks the "Follow" button, a popup appears for them to login to their Twitter account or authorize Twitter Fan Box.

Add Twitter Fan Box To Blogger:

  • Go To Blogger > Layout > Add A Gadget > HTML/JavaScript
  • Paste following code and click on Save:

<!-- Twitter Fan Box -->
<script type="text/javascript" src="http://s.moopz.com/fanbox_init.js"></script><div id="twitterfanbox"></div><script type="text/javascript">fanbox_init("HardeepAsrani");</script>
<!-- End Twitter Fan Box -->

Don't forget to replace HardeepAsrani with your Twitter handler. You can test this widget by following me:

Important: Check our new website TricksPanda.com for WordPress tutorials, plugins and more.
 
Powered by Blogger.