edbizarro / laravel-facebook-ads Goto Github PK
View Code? Open in Web Editor NEWFacebook & Instagram Ads API for Laravel
License: MIT License
Facebook & Instagram Ads API for Laravel
License: MIT License
Hi, is there a way to fetch data from Google Inights like impressions? Thank you
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..
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!
:-(
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
Hello, it's possible get AdSets costs and Ads Infos? I dindn't found this info in README.md.
Help-me, please?
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
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
$insights = $adsApi->insights();
$adAccountInsights = $insights->get('ad_account', 'act_88888', ['fields'=>[ 'ad_name']]);
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?
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
I need help with the setup of this package thanks.
$user = Socialite::driver('facebook')->user();
$accessToken= $user->token;
FacebookAds::init($accessToken);
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.
I'm getting this error when I add FacebookAds::init($accessToken); before using it. Also I needed to include use Edbizarro\LaravelFacebookAds\FacebookAds;
Error msg: Non-static method Edbizarro\LaravelFacebookAds\AbstractFacebookAds::init() should not be called statically
Any help, please??
FacebookAds\Http\Exception\AuthorizationException
(#2635) You are calling a deprecated version of the Ads API. Please update to the latest version: v5.0
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
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.
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.