fb-likebox

Widget to create facebook like box for given facebook username
4 followers

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.

Requirements

Tested on Yii 1.1.13

Installation
Extract the release file under protected/extensions.

Usage

$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.

Total 1 comment

#13794 report it
trond at 2013/06/26 10:10am
Great extension

Turning the true/false optional features off, did not work for me, however, until I changed 'show_header' => false into 'show_header' => 'false'

Leave a comment

Please to leave your comment.

Create extension
Downloads