PHP 클래스 kartik\social\FacebookPlugin

Usage: echo FacebookPlugin::widget([ 'appId' => 'FACEBOOK_APP_ID', 'type' => FacebookPlugin::COMMENT, 'settings' => ['colorscheme' => 'dark'] ]);
부터: 1.0
저자: Kartik Visweswaran ([email protected])
상속: extends Widget
파일 보기 프로젝트 열기: kartik-v/yii2-social 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
init ( ) Initialize the widget

보호된 메소드들

메소드 설명
registerAssets ( ) Registers the necessary assets

메소드 상세

init() 공개 메소드

Initialize the widget
public init ( )

registerAssets() 보호된 메소드

Registers the necessary assets
protected registerAssets ( )

프로퍼티 상세

$appId 공개적으로 프로퍼티

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

$async 공개적으로 프로퍼티

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

$settings 공개적으로 프로퍼티

the Facebook plugin settings
public $settings

$type 공개적으로 프로퍼티

the Facebook plugin type defaults to Facebook Comments
public $type