I have a whitelisted Facebook App that is out of sandbox mode and has been approved for the Ads API, but I am receiving the following error when trying to make requests to the Ads API.
{
"error": {
"message": "(#270) This Ads API request is not allowed for apps with only developer access",
"type": "OAuthException",
"code": 270
}
}
This occurs when using adgroupstats, adcampaignstats, and reportstats requests, etc. The adaccounts request does return my account information though. My dashboard does read "This app is public and available to all users", as I needed to get out of sandbox mode in order for my app to be whitelisted.
Is there another setting that I have missed in order to gain access to the Ads API calls that I need?
Answer:
This is most likely due to your dev/admin accounts of the app not being set as "Admins" in facebook's ad manager. Let me know if this solves this issue for you.
Old response:
I am running into the same issue. Can not run api calls against reportstats even though the user that the app/ad account belongs too was an admin, i change that user to a developer and its still happening.
I opened a bug report for this: https://developers.facebook.com/bugs/786289188058999
Related
We have an App that is connected to several advertising accounts. In the past, we used to use the app internally by our developers to fetch the ads data and use it internally for monitoring analysing purposes. We used to face some token expirations issues from time to time (we use long living user token) but we refresh the token and our job is able to refresh the token.
However, in the last month, our token is expired, and when we refresh the token and we try to fetch the data, we get the error: "(#100) Missing permissions".
Status: 400
Response:
{
"error": {
"message": "(#100) Missing permissions",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "-"
}
}
Despite that the permissions we are giving to our app are: read_insights, ads_management, ads_read, public_profile, and in the past used to work fine, but suddenly it's not working anymore.
We did some investigations, we found a lot of issues like those, but we couldn't find a solution. Also, our app is used internally within the company, by developers to fetch Ads data. Are we missing anything here? Can submitting an app review be a solution for the problem?
Am new to Facebook related stack. So, please bear if its a dumb question.
I created a Facebook App but I couldn't able to find the option to make my APP Live. Do I need to submit it for review and then only I can able to make it Live?
Also am trying to do a Facebook messaging using send API. Am getting "message": "(#803) Some of the aliases you requested do not exist: messages".
Am I missing something? Please help.
Also am trying to do a Facebook messaging using send API. Am getting
"message": "(#803) Some of the aliases you requested do not exist:
messages"
Your URL should be in this format
https://graph.facebook.com/v9.0/me/messages?access_token=<PAGE_ACCESS_TOKEN>
This means you're missing the /me object in your call. Also since, it's a POST request you need to attach a body with the following params to the call.
"messaging_type": "<MESSAGING_TYPE>",
"recipient": {
"id": "<PSID>"
},
"message": {
"text": "hello, world!"
}
Do I need to submit it for review and then only I can able to make it
Live?
According to the page you linked, you need to request pages_messaging permission and that requires App Review in order for this Send API to work in your app.
Additionally, If you want to test this in development mode, you can give a role to the user(as a developer, tester, or analytics user) you're trying to message and test with them as mentioned on the page you linked:
Apps in Development Mode, are restricted to message people that have a
role in the app. Additionally, Pages in unpublished status will only be
allowed to message people with a role on the Page.
I have a FB app that works well before. It allows users to subscribe their pages to our app.
Recently, I got the error below when trying to subscribe a page to our app:
'Access to this data is temporarily disabled for non-active apps or apps that have not recently accessed this data due to changes we are making to the Facebook Platform.'
I am using this request url: https://graph.facebook.com/me/subscribed_apps?access_token=xxx
It worked great before but not for now.
However, when I try to submit the same request with the
https://developers.facebook.com/tools/explorer
it works.
Anyone canshow me how can I fix this problem?
Thanks,
Thanh
Have the same issue here. My APP uses Facebook Graph API to import events. Credentials for APP (token) was enabled a long time ago....
Now seems its throwing and error also at https://developers.facebook.com/tools/explorer/1405126029586258?method=GET&path=157956504840454%2Fevents&version=v2.12
Nether my APP or Graph API is working. Below the error message....
{
"error": {
"message": "Unsupported get request. Object with ID '157956504840454' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
"type": "GraphMethodException",
"code": 100,
"error_subcode": 33,
"fbtrace_id": "EHCB6/XyJsA"
}
}
Same error on my app at Wordpress to import events
Message from Facebook answering the question...
As we begin enhancing our new app review process and make changes to our platform, the Events, Groups, Pages and Instagram APIs will no longer be available to new developers. Testing of our more robust process starts today and the new process should resume in a few weeks, but apps currently accessing Events and Groups APIs will lose access today. Going forward, access to these APIs will require a formal app review and for apps using the Pages API, submission is required within 90 days once app review resumes or access will be removed.
https://developers.facebook.com/blog/post/2018/04/04/facebook-api-platform-product-changes
I am trying to pull Facebook Ads metrics through the Facebook Marketing API. The flow is basically that I wish to pull all the account ids of my company, and then loop over them, retrieving the insights for them individually.
However I have an error which I am not able to solve/comprehend.
When I attempt to make the API call (both in the Graph Explorer and my Alteryx workflow):
GET-> /v2.8/act_<Account_ID>/insights
I get the following error:
"error": {
"message": "(#3) Application does not have the capability to make this API call.",
"type": "OAuthException",
"code": 3,
"fbtrace_id": "BNevVWUExDg"
}
I must admit that I am quite at a loss what is causing this error...and actually also exactly what the issue is...am I lacking the right scope/permissions for my token?
With the same token I am able to correctly call the API to get a list of all adaccounts (GET-> /v2.8/me/adaccounts ).
Anyone have an idea what my issue might be?
You have to make sure that your particular access token has the permissions ads_management or ads_read.
This is from the Marketing API quickstart. https://developers.facebook.com/docs/marketing-apis
There are also rate limits on those API's, but I would expect a different error if that was the case.
I ran a POST instead of GET on the same endpoints, which gives me another error about not being admin on the account.
It appears that the user associated with the token (which is a long lived one) was only having analyst access to the account in Business Manager. After I changed it to advertiser it seems I can do the GET call.
In my case, I added a new development user in the roles page. Then I was trying to do OAuth. I got the error message "Application does not have the capability to make this API call."
Here's the way that I solve the problem while your application still in the development mode.
Go to Marketing API > Tools
Then select what token permissions you want. Press "Get Token" button.
Now, you can try to do OAuth again.
My campaign is running on FB and I want to extract daily data with the help of Ads API.
I'm using facebook ads api and I'm facing this problem every time
{
"error": {
"message": "(#294) Managing advertisements requires the extended permission ads_management, and a participating API key",
"type": "OAuthException",
"code": 294
}
}
I have created one app XYZ and using this created I created an ad campaign.
With Graph API Explorer I generated Access Token. and I give permissions also.
You have to make sure you have an application white listed to use the Ads API. Also, you need to make sure you get an access token for that white listed application. If your app is white listed, you can use the graph explorer, change the drop down to your app, click get access token and make sure you tick the ads_management permissions. Hope that helps.
You must have to extended permission for accessing facebook ads using api.
In your facebook application which one you created in facebook account .Add itme in status and review for ads_managemnt, insight.
Setting -> Status & Review -> Items in Review.
There are few way how to generate app access tokens in FB. If you want to access marketing api you should do this in page https://developers.facebook.com/apps/{YOUR_APP_ID}/marketing-api/tools/ using required options.