westside / yii2-facebook-buttons
Facebook 社交按钮小部件
v0.1
2016-11-28 16:02 UTC
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-09-14 03:27:46 UTC
README
Facebook 社交按钮小部件
安装
安装此扩展的首选方式是通过 composer。
运行
php composer.phar require --prefer-dist westside/yii2-facebook-buttons "*"
或者将以下内容添加到你的 composer.json
文件的 require 部分:
"westside/yii2-facebook-buttons": "*"
to the require section of your composer.json
file.
用法
扩展安装后,只需在代码中通过
<?= \westside\facebook\ShareButton::widget([ 'title' => 'Some Title', 'image' => 'file.url', 'description' => 'Some Description', //'size' => self::SIZE_SMALL, //'layout' => selft::LAYOUT_BUTTON_COUNT, //'mobileIframe' => true, ]); ?>