Wikia

Community Central

Facebook Like Box

91,212pages on
this wiki

Forum page

This Forum has been archived

Visit the new Forums
Forums: Index Community Central Forum Facebook Like Box
Wikia's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
Note: This topic has been unedited for 1391 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.


I've just created a Facebook Like Box and want to implement on the mainpage of my Wiki, but I'm running into some small problems. At Facebook I selected that I don't want a Stream and I don't want a header, then I clicked on 'Get Code' and I got the following two codes:

iframe code:
<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FGongjins-Campaign-Memorials-a-Three-Kingdoms-Wiki%2F176884678992803&width=292&colorscheme=light&connections=10&stream=true&header=true&height=587" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:587px;" allowTransparency="true"></iframe>
and an XFBML code:
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like-box href="http://www.facebook.com/pages/Gongjins-Campaign-Memorials-a-Three-Kingdoms-Wiki/176884678992803"></fb:like-box>

I've implemented the XFMBL code on a template, here, but as you can see the header and Stream are still shown. I guess this has something to do with the first code (iframe)?? But I don't know where I have to implement that one... Can anyone help please? ---Zantam03 (Talk) 20:09, November 9, 2010 (UTC)

All you have to do is insert this into your wiki's JS page:

function fBox() {
	$('#fbox').append('<iframe marginheight="0" marginwidth="0" src="http://www.facebook.com/connect/connect.php?id=151981424827777&connections=5" align="top" frameborder="0" width="300" height="175" scrolling="no" />');
}
 
$(fBox);

See the id number after it says connect.php?? Change the id number to the id number of your Facebook page. Then for the connections=5, you can change that to another number to allow it to display the number of people per row.

Then you can just use
<div id="fbox"></div>
on the page you want and it will appear. SSgtGriffin Htmlcss-toolbar on Facebook 00:05, November 10, 2010 (UTC)

Oh, then the Facebook like box will look like the one on my wiki's main page. SSgtGriffin Htmlcss-toolbar on Facebook 00:07, November 10, 2010 (UTC)

Thanks :-) ---Zantam03 (Talk) 11:49, November 10, 2010 (UTC)

Around Wikia's network

Random Wiki