Fandom

Wikia Developers Wiki

FacebookLikeBox

823pages on
this wiki
Add New Page
Talk0 Share

FacebookLikeBox is a plugin to index a facebook fanbox a facebook page. An easier way to add it to your Wiki.


Instalation

Put the JavaScript on you MediaWiki:Common.js

importArticle({
  type: 'script',
  article: 'u:dev:FacebookLikeBox/code.js'
});

Syntax

Then place an element anywhere on your wiki to make the Facebook Like Box appear.

<div class="fb-like-box" data-href="http://www.facebook.com/PAGEURL" data-colorscheme="light" data-show-faces="true" data-header="true" data-stream="false" data-show-border="true"></div>

Configuration

Option (HTML5) Description Posible Values Default
data-colorscheme The color scheme used by the plugin. dark
light
light
data-force-wall For "place" Pages (Pages that have a physical location that can be used with check-ins), this specifies whether the stream contains posts by the Page or just check-ins from friends. true
false
false
data-header Specifies whether to display the Facebook header at the top of the plugin. true
false
true
data-height The height of the plugin in pixels. The default height varies based on number of faces to display, and whether the stream is displayed. Varies, see left. 63px without data-show-faces

556px width data-show-faces

data-href The absolute URL of the Facebook Page that will be liked. This is a required setting. PAGE URL (ex. https://www.facebook.com/wikia) None
data-show-border Specifies whether or not to show a border around the plugin. true
false
true
data-show-faces Specifies whether to display profile photos of people who like the page. true
false
true
data-stream Specifies whether to display a stream of the latest posts by the Page. true
false
true
data-width The width of the plugin in pixels. Minimum is 292. 300

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.