PHP code example of filippo-toso / open-graph-protocol
1. Go to this page and download the library: Download filippo-toso/open-graph-protocol 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/ */
filippo-toso / open-graph-protocol example snippets
Ogp::title('Apple Cookie')
->type('article')
->image('http://example.org/apple.jpg')
->description('Welcome to the best apple cookie recipe never created.')
->url();