PHP code example of ray-nl / laravel-facebook-catalog
1. Go to this page and download the library: Download ray-nl/laravel-facebook-catalog 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/ */
ray-nl / laravel-facebook-catalog example snippets
use RayNl\LaravelFacebookCatalog\LaravelFacebookCatalog;
LaravelFacebookCatalog::setTitle('Example feed');
LaravelFacebookCatalog::setDescription('Example feed of the Example shop');
LaravelFacebookCatalog::setLink('https://example.shop');
LaravelFacebookCatalog::addItem(
"https://example.shop/p/foo-bar",
"SKU123",
"Foo bar",
"https://example.shop/images/foo-bar.png",
"Foo bar best product",
'new',
99.99,
'Foo brand',
'6387712293758',
[
'country' => 'NL',
'service' => 'PostNL - Gratis',
'price' => 0
]
);
return LaravelFacebookCatalog::display();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.