https://github.com/spotonlive/laravel-facebook-ads
Facebook integration for Laravel
https://github.com/spotonlive/laravel-facebook-ads
facebook facebook-ads laravel
Last synced: about 2 months ago
JSON representation
Facebook integration for Laravel
- Host: GitHub
- URL: https://github.com/spotonlive/laravel-facebook-ads
- Owner: spotonlive
- License: mit
- Created: 2016-01-07T10:18:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-05-03T21:11:36.000Z (about 2 years ago)
- Last Synced: 2025-04-30T05:44:56.862Z (about 2 months ago)
- Topics: facebook, facebook-ads, laravel
- Language: PHP
- Homepage:
- Size: 65.4 KB
- Stars: 19
- Watchers: 3
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](http://laravel.com) [](https://packagist.org/packages/spotonlive/laravel-facebook-ads) [](https://packagist.org/packages/spotonlive/laravel-facebook-ads) [](https://packagist.org/packages/spotonlive/laravel-facebook-ads) [](https://packagist.org/packages/spotonlive/laravel-facebook-ads) [](https://travis-ci.org/spotonlive/laravel-facebook-ads) [](https://codeclimate.com/github/spotonlive/laravel-facebook-ads) [](https://codeclimate.com/github/spotonlive/laravel-facebook-ads/coverage)
## Facebook Ads API for Laravel 5.*
This package is an integration of [`facebook/facebook-php-ads-sdk`](https://github.com/facebook/facebook-php-ads-sdk) in Laravel 5.*.
### Composer
- Run `$ composer require spotonlive/laravel-facebook-ads`## Examples
### Client
```php
facebookClient = $facebookClient;
}/**
* Show ads
*
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/
public function ads()
{
$client = $this->facebookClient;$accountId = 'act_12345678';
return view('ads', [
'ads' => $client->account($accountId)->ads(),
]);
}
}
```### Credits
- [`SpotOn Marketing`](https://spotonmarketing.dk/)
- [`nikolajlovenhardt`](https://github.com/nikolajlovenhardt)