Facebook fan box widget that loads faster on your blog


Most of us use the fan box widget for our blogs, the default iframe or xFBML is slower to load. Here is a trick to create your own widget.

Most of the uses the code for Facebook fan box widget copy-pasting from the official page blindly, either the iframe code or the xFBML code from there. Prerequisite is only your existent Face book page. Just copy the code page id from there for our own Facebook fan box widget creation.

 

How to get the FaceBook page ID for creating this Facebook fan box widget?

 

Just go to your FaceBook page, hover the mouse over your logo and the ID will appear in the lower pane of your browser; just like this:

 

 

Get ready for your own Facebook fan box widget

 

Go to this url:

 

http://www.facebook.com/plugins/fan.?id=169395346410041&

 

Copy it, paste to Notepad, change the number (= ID) marked red with your own ID, again copy it and paste it to your browser and hit Enter. You will see something like this:

 

Facebook fan box

That means, it is a primitive Facebook fan box widget. If you are already a fan, and logged in, it must be showing you like the page.

 

 

This is the code to make it appear in your sidebar:

 

<iframe src=”http://www.facebook.com/plugins/fan.php?id=169395346410041&amp;”></iframe>

 

For more customization, for example; to show only the header and Like in the Facebook fan box widget; we will use this code instead:

 

<iframe src=”http://www.facebook.com/plugins/fan.php?id=169395346410041&amp;width=330&amp;header=true&amp;style=”border:1px;”></iframe>

 


You can play with the full code too:

 

<iframe src=”http://www.facebook.com/plugins/fan.php?id=169395346410041&amp;width=330&amp;connections=5&amp;stream=false&amp;header=true&amp;locale=en_US” scrolling=”no” frameborder=”0” style=”border:none; overflow:hidden; width:330px; height:200px”></iframe>

 

You can change the red texts to customize your own Facebook fan box widget. This is conventional. But we will make a faster loading Facebook fan box widget.

 

You can took a snapshot of the full Facebook fan box widget, say with 20 faces; chop the the part showing faces of your fans and place it below the first code. Above, you can use another looking like FaceBook header.

So, the number of http request will only three, instead of 20 + 2 = 22. This a sample:

Combine these two in your sidebar:

Facebook fan box widget that loads faster on your blog
 
Signature


Incoming search terms:

plugins/fan php,facebook fanbox id,fan php facebook,fast loading facebook like box,faster facebook widget code,faster loading facebook fans page widget,make facebook iframe load faster,src= http //www facebook com/plugins/fan php id=,www facebook fast l0ading
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.
About Abhishek

Abhishek Ghosh is an Orthopedic Surgeon, Inventor with 216 Patents, Current editor of The Customize Windows Media Group. You can follow and know more about Dr. +Abhishek Ghosh on Google Plus and follow on Twitter as @AbhishekCTRL.

Comments

  1. Too much iframe has totally wasted the formatting of the post! It will not happen with your sidebar.

  2. Hi,
    I’ve followed your code, and put my own ID, but that doesn’t seem to work properly on WordPress. The result is curious : i’ve got an iframe of my own website (right sidebar). Could you help ?

  3. It's all about technology and gadget news reviews says:

    I’m very pleased to find this site. I need to to thank you for your time for this fantastic read!! I definitely really liked every bit of it and I have you saved to fav to look at new things on your blog.

  4. Oh my go..Can’t believe.. I did as you have written in the post…The blog loads much faster..

Trackbacks

  1. Facebook fan box widget that loads faster on your blog « Wordpress Tricks says:

    [...] Fastest Facebook fan box widget for your blog [...]

  2. fan box facebook widget 2011 « Friendly Wordpress says:

    [...] Continue to read full tutorial on how to create fan box facebook widget 2011 [...]

  3. FB box for France « friendlywordpress says:

    [...] Original post: Facebook fan box widget that loads faster on your blog [...]

Speak Your Mind

*