PHP code example of splashlab / yii-facebook-opengraph
1. Go to this page and download the library: Download splashlab/yii-facebook-opengraph 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/ */
splashlab / yii-facebook-opengraph example snippets
Yii::app()->facebook->ogTags['og:title'] = "My Page Title";
$this->widget('\YiiFacebook\Plugins\LikeButton', [
//'href' => 'YOUR_URL', // if omitted Facebook will use the current page URL
'show_faces'=>true,
'share' => true
]);