fb-likebox Widget to create facebook like box for given facebook username

It generates Facebook Like Box.

The like box enables people using your app or website to do the following:

  • See how many people like the Page, and which of their friends like it, too.
  • Read recent posts from the Page.
  • Like the Page with one click, without needing to visit the Page.


Tested on Yii 1.1.13

Extract the release file under protected/extensions.


$this->widget('application.extensions.fb-likebox.FBLikeBox', array(
'lang' => 'en_US', // optional (default: en_US)
'username' => 'facebook_username', // required facebook username
'height' => 600, // optional height of like box (default: 63)
'width' => 300, // optional width of like box (default: 300)
'show_faces' => true, // optional true|false (default: true)
'color_scheme' => 'light', // optional light|dark (default: light)
'show_stream' => true, // optional true|false (default: true)
'show_border' => true, // optional true|false (default: true)
'show_header' => true, // optional true|false (default: true)
  • lang - Language from facebook supported language list (see fb-language-support-list.txt file)
  • username - facebook username
  • 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. With the stream displayed, and 10 faces the default height is 556px. With no faces, and no stream the default height is 63px
  • width - the width of the plugin in pixels. Default width: 300px
  • show_faces - specifies whether or not to display profile photos in the plugin. Default value: true.
  • color_scheme - the color scheme for the plugin. Options: 'light', 'dark'
  • show_stream - specifies whether to display a stream of the latest posts from the Page's wall
  • show_border - specifies whether or not to show a border around the plugin, default true. Set to false to style the iframe with your custom CSS.
  • show_header - specifies whether to display the Facebook header at the top of the plugin.
1 0
Yii Version: Unknown
License: (not set)
Category: User Interface
Developed by: kautil
Created on: Jun 21, 2013
Last updated: 4 years ago


show all

Related Extensions