GithubHelp home page GithubHelp logo

edbizarro / laravel-facebook-ads Goto Github PK

View Code? Open in Web Editor NEW
120.0 10.0 32.0 288 KB

Facebook & Instagram Ads API for Laravel

License: MIT License

PHP 100.00%
laravel facebook facebook-api laravel-facebook-ads facebook-ads instagram-api instagram-ads

laravel-facebook-ads's Issues

Facebook Insights

Hi, is there a way to fetch data from Google Inights like impressions? Thank you

FB Form Leads Access

Hi, is this package able to grab the lead(s)/submission(s) data thats stored in FB Ads Manager from running an ad that uses a FB form?
...e.g. When someone fills out the FB form, Id like to receive the data that they submitted..

Fluxo de gerenciamento do ADS do facebook.

Amigo, vi que você é brasileiro.

cara.. preciso implementar uma funcionalidade de um cliente relacionada ao facebook ads. Preciso, por meio de um sistema que consome a api do api marketing, publicar e gerenciar anúncios. Eu sei que o seu projeto apenas ler.

mas o meu maior problema hoje é que a documentação do facebook é horrível. eu não consigo entender o fluxo do início até o fim. lá na página do aplicativo tem dezenas de tokens que são gerados e não consigo sair do lugar.

você poderia me explicar como é o fluxo até conseguir usar a api de publicação ads do face?

agradeço!

Class facebook-ads does not exist

I am using the package with Lumen but getting this error

(1/1) ReflectionException
Class facebook-ads does not exist

Can you please help me what I'm messing?

My Controller

use Edbizarro\LaravelFacebookAds\Facades\FacebookAds;

class LeadController extends Controller {

 public function facebookTest(Request $request) {
        FacebookAds::init('MY SESSION TOKEN');
        $ads = FacebookAds::adAccounts()->all()->map(function ($adAccount) {
            return $adAccount->ads(['name', 'account_id', 'account_status', 'balance', 'campaign', 'campaign_id', 'status']);
        });

        $this->success($ads);
    }
}

config/app.php

'aliases' => [
        ....
        'FacebookAds' => Edbizarro\LaravelFacebookAds\Facades\FacebookAds::class
    ]

I'm using Lumen 5.7

Get AdSets And Ads Infos

Hello, it's possible get AdSets costs and Ads Infos? I dindn't found this info in README.md.

Help-me, please?

An Api instance must be provided as argument or set as instance

Hi, edbizarro, i have been trying to implement this laravel-facebook-ads but i have been getting this error, ''An Api instance must be provided as argument or set as instance in the \FacebookAds\ApAn Api instance must be provided as argument or set as instance in the \FacebookAds\Api". and my version is 0.8.2

Facebook - You are calling a deprecated version of the Ads API

I'm getting this error since some time. How can i solve this?

You are calling a deprecated version of the Ads API. Please update to the latest version: v4.0. in /root/akoro/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Exception/RequestException.php:159

Connection timed out after 10000 milliseconds

Hello! I've installed new Laravel 5.7 on PHP 7.2 and setted up your library according readme.
I tried to run the code below and i've got exception:
FacebookAds \ Exception \ Exception (28)
Connection timed out after 10000 milliseconds

FacebookAds::init('...');
    $ads = FacebookAds::adAccounts()->all()->map(function ($adAccount) {
        return $adAccount->ads(
            [
                'name',
                'account_id',
                'account_status',
                'balance',
                'campaign',
                'campaign_id',
                'status'
            ]
        );
    });

    dd($ads);

Can you help me fix it?

campaigns

hello bro
why i cant get my campaigns spend when it paused
when active i can get by call
zzzzzzzzzzz/campaigns?fields=name,insights{spend},effective_status{vec},spend_cap&date_preset=last_year
this api

any help for get my campaigns if it paused

How can I get the AccessToken

I need help with the setup of this package thanks.

$user = Socialite::driver('facebook')->user();

$accessToken= $user->token;

FacebookAds::init($accessToken);

"Interface 'tightenco\collect\Contracts\Support\Arrayable' not found"

I am trying to use facebook api to get the details of my facebook ads. I have implemented your given package to laravel 5.6 with php 7.2.1. Now after implementing everything I am getting "Interface 'tightenco\collect\Contracts\Support\Arrayable' not found". Kindly look at the issue. Two screen shots are attached.

temp2

temp

FacebookAds\Http\Exception\AuthorizationException: Unsupported get request. in /root/akoro/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Exception/RequestException.php:159

Since yesterday i always get this error by doing the following reqest:
Before it worked without problems?

Request:
$insights= $adsApi->insights($per,'act_177827xxxxxxxxx','ad', ["fields"=>["account_id","account_name"] ]);

error:
FacebookAds\Http\Exception\AuthorizationException: Unsupported get request. in /root/akoro/vendor/facebook/php-business-sdk/src/FacebookAds/Http/Exception/RequestException.php:159

Filter amount spent in Ad Account

How to filter amount spent in a Ad Account by start and end date?
When I do $adAccounts->get(['amount_spent', 'name'], 'act_' . $id); it returns the total amount spent. I want it between two dates.

Question: How to get all campaigns for an account

Hi there,

I'd like to get a summary for all campaigns on all of my accounts that I manage.

As I understand, I need to get adAccounts()->all() first, then loop through them and call $insights->get('campaign', $account['id'], $params); . But I always get account data rather than campaigns. I have a feeling that I need to pass campaign ID instead of account ID... but there's no way to get all campaigns and find out their IDs.

So, how would I go about getting insights summary for all active campaigns on each account?

Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.