Fandom

Wikia Developers Wiki

Facebook

889pages on
this wiki
Add New Page
Talk14 Share

What it does

It allows you to put a Facebook Like Box on a wiki.

How to use it

First get your Facebook Page id number at the end of the address. Example:

http://www.facebook.com/pages/Orbsome/157805369133
  • The id from this page is 157805369133

Once you have your Facebook Page id then change the line in the JavaScript with your id.

src="http://www.facebook.com/connect/connect.php?id=000000000000"

Put the JavaScript on your MediaWiki:Common.js .Then place an element with id="fbox" anywhere on your wiki to make the Facebook Like Box appear.

Example:

<div id="fbox"> </div>

Code

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

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.