Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 1 month 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 (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-05-03T21:11:36.000Z (over 1 year ago)
- Last Synced: 2024-10-29T04:41:48.688Z (about 2 months ago)
- Topics: facebook, facebook-ads, laravel
- Language: PHP
- Homepage:
- Size: 65.4 KB
- Stars: 19
- Watchers: 4
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Laravel 5.3](https://img.shields.io/badge/Laravel-5.3-orange.svg?style=flat-square)](http://laravel.com) [![Latest Stable Version](https://poser.pugx.org/spotonlive/laravel-facebook-ads/v/stable)](https://packagist.org/packages/spotonlive/laravel-facebook-ads) [![Total Downloads](https://poser.pugx.org/spotonlive/laravel-facebook-ads/downloads)](https://packagist.org/packages/spotonlive/laravel-facebook-ads) [![Latest Unstable Version](https://poser.pugx.org/spotonlive/laravel-facebook-ads/v/unstable)](https://packagist.org/packages/spotonlive/laravel-facebook-ads) [![License](https://poser.pugx.org/spotonlive/laravel-facebook-ads/license)](https://packagist.org/packages/spotonlive/laravel-facebook-ads) [![Build Status](https://travis-ci.org/spotonlive/laravel-facebook-ads.svg?branch=master)](https://travis-ci.org/spotonlive/laravel-facebook-ads) [![Code Climate](https://codeclimate.com/github/spotonlive/laravel-facebook-ads/badges/gpa.svg)](https://codeclimate.com/github/spotonlive/laravel-facebook-ads) [![Test Coverage](https://codeclimate.com/github/spotonlive/laravel-facebook-ads/badges/coverage.svg)](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)