daxslab / yii2-facebookcomments-widget
Yii2 widget to include the Facebook widget for comments in views.
Installs: 31
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-10-23 07:51:48 UTC
README
Yii2 widget to include the Facebook widget for comments in views.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist daxslab/yii2-facebookcomments-widget "*"
or add
"daxslab/yii2-facebookcomments-widget": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your views by :
<?= \daxslab\facebook\CommentsBox::widget([ 'appId' => 'MY_FACEBOOK_APP_ID', //defaults to Yii::$app->paramss['facebook_app_id'] 'numPosts' => 10 //defaults to 5 ]); ?>