New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

spotonlive/laravel-facebook-ads

Facebook integration for Laravel
17,057 19
Install
composer require spotonlive/laravel-facebook-ads
Latest Version:2.0.3
PHP:>=5.5.0
Laravel:5 – 9
License:MIT
Last Updated:May 3, 2023
Links: GitHub  ·  Packagist
Maintainer: nikolajlovenhardt

Laravel 5.3 Latest Stable Version Total Downloads Latest Unstable Version License Build Status Code Climate Test Coverage

Facebook Ads API for Laravel 5.*

This package is an integration of facebook/facebook-php-ads-sdk in Laravel 5.*.

Composer

  • Run $ composer require spotonlive/laravel-facebook-ads

Examples

Client

<?php

namespace App\Http\Controllers;

use LaravelFacebook\Clients\Facebook;

class AdsController
{
    /** @var Facebook */
    protected $facebookClient;

    public function __construct(Facebook $facebookClient)
    {
        $this->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

Related Packages

xmhafiz/fb-page-feed

Simple wrapper class to get any Facebook Page posts

152,027 66
edbizarro/laravel-facebook-ads

Facebook & Instagram Ads for Laravel 5.6+

30,360 135
noodlewitt/facebook-php-sdk-v4

Laravel Facebook SDK for PHP

51 0
ianfunghk/luckfbconnect

Facebook Connect for Laravel

17 0
esign/laravel-conversions-api

A laravel wrapper package around the Facebook Conversions API

223,021 69

Version History

Version Released PHP Laravel License
2.0.3 >=5.5.0 ^5.0|^6.0|^7.0|^8.0|^9.0 MIT
2.0.2 >=5.5.0 ^5.0|^6.0|^7.0|^8.0|^9.0 MIT
2.0.1 >=5.5.0 ^5.0|^6.0|^7.0|^8.0 MIT
2.0 >=5.5.0 ^5.0|^6.0|^7.0|^8.0 MIT
1.6 >=5.5.0 5.* MIT