dev-master
9999999-dev
MIT
The Requires
- php >=5.4.0
- illuminate/support ~5.0
- facebook/php-ads-sdk 2.11.*
by Ali Mohamed
Wallogit.com
2017 © Pedro Peláez
This package needs Laravel 5.x, (*1)
Begin by installing this package through Composer. Require it directly from the Terminal to take the last stable version:, (*2)
$ composer require alyahmmed/facebook-pixel dev-master
Once this operation completes, you must add the service provider. Open app/config/app.php, and add a new item to the providers array., (*3)
'providers' => [
// ...
Alyahmmed\FacebookPixel\FacebookPixelProvider::class,
],
At this point the inliner should be already working with the default options. If you want to fine-tune these options, you can do so by publishing the configuration file:, (*4)
$ php artisan vendor:publish --provider=Alyahmmed\FacebookPixel\FacebookPixelProvider
Edit config file config/facebook.php with your FB app details., (*5)
Add the following to your main route file routes/web.php feel free to alter these routes to what suits you best, (*6)
Route::group(['namespace' => 'Backend', 'prefix' => '/backend'], function()
{
Route::get('/pixel_stats', "FacebookAdsController@stats");
});
MIT