We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
hi @kalimulhaq
I never set up a lumen instance myself, so, I don't know exactly why does this happen, I'll try to set up a lumen install to see what's going on
Sorry, something went wrong.
Did you add the provider in app.php?
Edbizarro\LaravelFacebookAds\Providers\LaravelFacebookServiceProvider::class
No branches or pull requests
I am using the package with Lumen but getting this error
Can you please help me what I'm messing?
My Controller
config/app.php
I'm using Lumen 5.7
The text was updated successfully, but these errors were encountered: