Fb:like-box

From Facebook Developer Wiki (FbDevWiki.com)
Jump to: navigation, search

Official docs for fb:like-box

Example:

<fb:like-box href="http://www.facebook.com/fbwiki"></fb:like-box>

Renders as:


Attributes/Settings

Name Type Description Default
href url the URL of the Facebook Page for this Like Box value required
width integer the width of the plugin in pixels 300
height integer the height of the plugin in pixels The default height varies based on number of faces to display, and whether the stream is displayed. With the stream displayed, and 10 faces the default height is 556px. With no faces, and no stream the default height is 63px.
colorscheme [ 'light', 'dark' ] the color scheme for the plugin. light
show_faces boolean specifies whether or not to display profile photos in the plugin. true
stream boolean specifies whether to display a stream of the latest posts from the Page's wall true
header boolean specifies whether to display the Facebook header at the top of the plugin. true
border_color CSS color value the border color of the plugin.

Non-SDK method

It's also possible to include the plugin on a page without having to load the Javascript SDK and parse XFBML (which is likely much faster). You can include an iframe that loads http://www.facebook.com/plugins/likebox.php and you can include the same parameters as above but as GET variables.

iframe example:

<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Ffbwiki&amp;width=292"
 scrolling="no" frameborder="0" 
 style="border:none; overflow:hidden; width:292px; height:427px;" 
 allowTransparency="true">
</iframe>


Also See

Personal tools
Namespaces
Variants
Actions
Navigation
Graph API
FQL
Toolbox