mirror of
https://github.com/wearepixel/laravel-facebook-feed.git
synced 2026-11-14 13:51:42 +00:00
33b0903b046b40e3d2563c63e53cc4b5330bc911
Laravel Facebook Feed
A simple package to easily create an XML feed for Facebooks Shipping API to parse and retrieve your products on a frequent basis.
We recommend adding this to an API controller and generating it on the fly each time so you can be sure your products are always up to date within your merchant center.
Installation
composer require wearepixel/laravel-facebook-feed
Example
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();
Languages
PHP
100%