Yii 1.1: fb-like-share-button

Yii extension for facebook Like, Recommend & Share button with custom attributes.
1 follower

All-in-one Yii extension including Like, Recommend & Share button with custom attributes like - action, layout, color scheme, user faces, show share etc.

Requirements

Tested with Yii 1.1.16

Installation

  • 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.fbLikeShareButton.fbLikeShareButton', array(
        'fbbutton' => array(
        'url'=>'https://facebook.com/yiiexperts', //http://www.facebook.com/fb_page
        'action'=>'like', //Display button - like or recommend
        'width'=>'200', //Layout width
        'height'=>'50', //Layout height
        'layout'=>'standard', //Layout - standard, button_count, button, box_count
        'color_scheme'=>'light', //Layout color scheme - light, dark
        'show_share'=>'true', //Display share button - true, false 
        'show_faces'=>'false', //Show user faces - true, false
     )
  ));

Demo

Facebook Like & Share Button

Download

https://github.com/rohitsuthar/fbLikeShareButton/

Usual parameters to be adjusted

  • url: Your facebook page link (url: http://www.facebook.com/fb_page)
  • action: Display button (action: like, recommend)
  • width: Layout width (in digit: 200)
  • height: Layout height (in digit: 50)
  • layout: Layout style (layout: standard, button_count, button, box_count)
  • color_scheme: Layout color scheme (layout: light, dark)
  • share: Display share button (show_post: true, false)
  • faces: Show user faces (show_faces: true, false)

Be the first person to leave a comment

Please to leave your comment.

Create extension