Comments (9)
Also, I just tried this with my account added as Advertiser and that doesn't work. It seems I can only get reports as admin while there is a role specifically dedicated to reading reports.
I know this isn't an issue with the PHP SDK but with the API in general.
from facebook-php-business-sdk.
hi @siegerhansma,
unfortunately what's wrong here is the error message:
- a user with Analyst permission can execute that request (admin is not the only valid role).
- you are seeing that error because the user has no permission to the account.
- please check the validity of your token with https://developers.facebook.com/tools/debug/ and check that the user has access to the account in https://www.facebook.com/ads/manage/
from facebook-php-business-sdk.
Weird, I don't really get what the issue is. Let me just walk you through my set up:
I made an app which is in development mode (because it's private, not sure if that matters) called test. My useraccount is connected to that app with an access token. My user account is also an analyst on an advertising account.
I'm connecting to /act_xxxxxxxxxxxxxxxxxx/reportstats where xxxxxxxxxxxx is the advertising account id and getting that exception. My access token has the ads_management permission. Could you tell me where this could go wrong?
from facebook-php-business-sdk.
Did you configured the ad account in the app settings?
https://developers.facebook.com/docs/reference/ads-api/access#standard_accounts
from facebook-php-business-sdk.
Yes, I have added the advertising Account ID under Authorized Ad Account IDs and my own email under Authorized Advertiser Emails and System User IDs.
from facebook-php-business-sdk.
This sounds odd. Can you please file a bug at http://developers.facebook.com/bugs and let us know the URL of the bug report. Please include in the report an access token and the adaccounts you are testing which can be submitted confidentially.
from facebook-php-business-sdk.
as this looks like a bug, closing this out. Please feel free to comment with the bug id if you submitted one on the FB developer site.
from facebook-php-business-sdk.
Is this solved? I have the same problem
from facebook-php-business-sdk.
The same here. Receive the same error message
from facebook-php-business-sdk.
Related Issues (20)
- Deprecations with `strlen` on null. HOT 4
- getDefaultRequestHeaders() is misspelled as getDefaultRequestHeaderds() HOT 1
- PHP 8.1 Deprecation HOT 4
- syntax error, unexpected '|', expecting ';' or '{' HOT 4
- Union types are only allowed since php8 HOT 2
- Exception: field 'id' is required Error HOT 2
- شخص ما أخترق حسابي الشخصي
- Normalizer.php strlen() must be of type string Problem
- Facebook Multi-Language Ads
- Syntax error in FB version v16.0.0 HOT 1
- The AdAccountFields enum does not currently implement the ACCOUNT_STATUS field. HOT 1
- Exception thrown without a stack frame in Unknown on line 0 HOT 1
- How to create a AAA advertisements above version 17
- Fix package installation instructions in README file
- Fff HOT 1
- error
- ad creative Url Tracking Params Update HOT 1
- OpenSSL SSL_connect: Connection reset by peer in connection to graph.facebook.com:443 Error
- Static singletons used everywhere HOT 3
- Incorrect PHPDoc types HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from facebook-php-business-sdk.