Changes

Jump to: navigation, search

Widget:FPP

2,858 bytes added, 18:07, 8 January 2020
Created page with "This widget allows you to embed a '''[https://developers.facebook.com/docs/plugins/page-plugin Facebook Page Plugin]''' (iframe version) on your wiki page. Adapted from the [..."
This widget allows you to embed a '''[https://developers.facebook.com/docs/plugins/page-plugin Facebook Page Plugin]''' (iframe version) on your wiki page.

Adapted from the [[Facebook Like Box]] by [[User:Chris White|Chris White]].

To insert this widget, use the following code:

<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>|profile=https://www.facebook.com/strongholdkingdoms}}</nowiki>

==Parameters==
All parameters are required. Each parameter is separated from the others by a pipe symbol '''"|"''' (don't use spaces in the code). '''If you want to use the default values, then the only required parameter is ''profile''.'''

* '''profile''' - URL of page on Facebook (e.g. https://www.facebook.com/strongholdkingdoms). This should match the URL shown when the person's profile is on-screen; no other code in the URL should be copied, i.e. "&sk=wall".
* '''width''' - Width in pixels for the box; this should only be a number, no "px". Defaults to '''340'''. Minimum is 180 and maximum is 500.
* '''height''' - Height in pixels for the box; this should only be a number, no "px". Defaults to '''130'''. If '''faces''' is set to true, set '''height''' to '''220''' for accurate rendering. If '''small_header''' is set to true, set '''height''' to '''70''' for accurate rendering. If '''faces''' and '''small_header''' are set to true, set '''height''' to '''155''' for accurate rendering. If '''tabs''' are set, adjust to the preferred height. Minimum is 70.
* '''hide_cover''' - Hide cover photo in the header. '''true''' or '''false'''. Defaults to '''false'''.
* '''faces''' - Show profile photos when friends like this. '''true''' or '''false'''. Defaults to '''false'''.
* '''small_header''' - Use the small header instead. '''true''' or '''false'''. Defaults to '''false'''.
* '''adapt_width''' - Try to fit inside the container width. '''true''' or '''false'''. Defaults to '''false'''.
* '''tabs''' - Tabs to render i.e. '''timeline''', '''events''', '''messages'''. Use a comma-separated list to add multiple tabs, i.e. '''timeline,events'''.

==Sample results==
=== example 1 ===
; code
<pre>{{#widget:{{PAGENAME}}|profile=https://www.facebook.com/strongholdkingdoms}}</pre>
; result
{{#widget:{{PAGENAME}}|profile=https://www.facebook.com/strongholdkingdoms}}

=== example 2 ===
; code
<pre>{{#widget:Facebook Page Plugin|profile=https://www.facebook.com/HeroWarzGlobal|faces=true|small_header=true|height=155}}</pre>
; result
{{#widget:Facebook Page Plugin|profile=https://www.facebook.com/HeroWarzGlobal|faces=true|small_header=true|height=155}}

=== example 3 ===
; code
<pre>{{#widget:Facebook Page Plugin|profile=https://www.facebook.com/WildStarOnline|tabs=timeline,messages,events|height=556}}</pre>
; result
{{#widget:Facebook Page Plugin|profile=https://www.facebook.com/WildStarOnline|tabs=timeline,messages,events|height=556}}
Root Admin, Bots, Bureaucrats, flow-bot, oversight, Administrators, Widget editors
24,656
edits

Navigation menu