fb-like-box

Yii extension for facebook Like box with custom attributes like - show header, post, user faces, layout etc.
4 followers

Yii extension for facebook Like box with custom attributes like - show header, post, user faces, layout etc. It's simple and less code extension but work great.

Requirements

Tested with Yii 1.1.14

Install

  • Download the latest release package
  • Unpack it in /protected/extensions/ folder

Usage

Paste the code into your main.php page or also you can use this code as per your requirement on any page.

$this->widget('application.extensions.fbLikeBox.fbLikeBox', array(
        'likebox' => array(
        'url'=>'https://facebook.com/yiiexperts',
        'header'=>'true',
        'width'=>'300',
        'height'=>'500',
        'layout'=>'light',
        'show_post'=>'false', 
        'show_faces'=>'true',
        'show_border'=>'true',
     )
  ));

Download

https://github.com/rohitsuthar/fbLikeBox

Usual parameters to be adjusted:

  • url: Your facebook page link (url: http://www.facebook.com/fb_page)
  • header: Display like box header (header: true, false)
  • width: Like box width (in digit: 300)
  • height: Like box height (in digit: 500)
  • layout: Like box layout background (layout: light, dark)
  • post/stream: Display page post (show_post: true, false)
  • faces: Show user faces (show_faces: true, false)
  • border: show box border (show_border: true, false)

More Extension

Visit - www.yiiexpert.github.io

Total 2 comments

#17563 report it
Rohit Suthar at 2014/07/03 01:38am
Need Url

Need to provide your facebook page url at place -

'url'=>'https://facebook.com/your_fb_page_name'
#17544 report it
Stefano Mtangoo at 2014/06/30 02:21pm
Any Demo

Demo alway is a cache!

Leave a comment

Please to leave your comment.

Create extension
Downloads