PHP code example of daxslab / yii2-facebookcomments-widget
1. Go to this page and download the library: Download daxslab/yii2-facebookcomments-widget library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
daxslab / yii2-facebookcomments-widget example snippets
<?= \daxslab\facebook\CommentsBox::widget([
'appId' => 'MY_FACEBOOK_APP_ID', //defaults to Yii::$app->paramss['facebook_app_id']
'numPosts' => 10 //defaults to 5
]);
php composer.phar