PHP Class kartik\social\FacebookPlugin

Usage: echo FacebookPlugin::widget([ 'appId' => 'FACEBOOK_APP_ID', 'type' => FacebookPlugin::COMMENT, 'settings' => ['colorscheme' => 'dark'] ]);
Since: 1.0
Author: Kartik Visweswaran ([email protected])
Inheritance: extends Widget
Show file Open project: kartik-v/yii2-social Class Usage Examples

Public Properties

Property Type Description
$appId the Facebook Application ID. This is mandatory.
$async whether to load facebook JS asynchronously. Defaults to true.
$settings the Facebook plugin settings
$type the Facebook plugin type defaults to Facebook Comments

Public Methods

Method Description
init ( ) Initialize the widget

Protected Methods

Method Description
registerAssets ( ) Registers the necessary assets

Method Details

init() public method

Initialize the widget
public init ( )

registerAssets() protected method

Registers the necessary assets
protected registerAssets ( )

Property Details

$appId public property

the Facebook Application ID. This is mandatory.
public $appId

$async public property

whether to load facebook JS asynchronously. Defaults to true.
public $async

$settings public property

the Facebook plugin settings
public $settings

$type public property

the Facebook plugin type defaults to Facebook Comments
public $type