PHP code example of wearepixel / laravel-facebook-feed
1. Go to this page and download the library: Download wearepixel/laravel-facebook-feed 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/ */
wearepixel / laravel-facebook-feed example snippets
use Wearepixel\LaravelFacebookFeed\LaravelFacebookFeed;
$feed = LaravelFacebookFeed::init(
'Product Feed',
'App product Feed',
'https://mystore.com'
);
$feed->addItem([
'id' => 'item_001',
'title' => 'Blue Nikes',
'link' => 'https://mystore.com/products/blue-nikes',
'price' => 29.99,
'image_link' => 'https://mystore.com/images/blue-nikes-001.jpg',
]);
return $feed->generate();