Wednesday 10 November 2010

Add facebook like twitter fan box to your site/blog

It is very common on blogs the Box Fan pages on Facebook, yes, those little boxes that show the number of fans that has the page and the avatars of them. Fan can also have a box for those who follow us on Twitter and it show the number of followers and fans the last 10 we have.


To add it to your blog just enter Layout | Page Elements | Add gadget | HTML / JavaScript and paste there the following



<div class="textwidget">
<script type="text/javascript" src="http://s.moopz.com/fanbox_init.js"></script><div id="twitterfanbox">
<script type="text/javascript">fanbox_init("twitteruser");</script></div>
</div>

<style>
.FB_SERVER_IFRAME {
width: 290px !important; /* Ancho del gadget */
height: 250px !important; /* Alto del gadget */
}
</style>

Where we put our Twitteruser says Twitter user name (without the @).The width and height of the gadget which specifies modified green.

No comments:

Post a Comment