daxslab/yii2-facebookcomments-widget
Composer 安装命令:
composer require daxslab/yii2-facebookcomments-widget
包简介
Yii2 widget to include the Facebook widget for comments in views.
README 文档
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 ]); ?>
统计信息
- 总下载量: 31
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-03-02