Ad-Library-API-Script-Repository icon indicating copy to clipboard operation
Ad-Library-API-Script-Repository copied to clipboard

Application doesn't have permission for this

Open abhilashi opened this issue 2 years ago • 3 comments

Is this an access token issue or something else? Can someone help out? My ID is confirmed too.

{"error":{"message":"Application does not have permission for this action","type":"OAuthException","code":10,"error_subcode":2332002,"is_transient":false,"error_user_title":"Authorization and login needed","error_user_msg":"To access the API, you'll need to follow the steps at facebook.com\/ads\/library\/api.","fbtrace_id":"AdnFHKk6D9J0eBf10RJY3FU"}}%

Do we need to give any specific permissions? I tried ads_read and ads_management.

abhilashi avatar Jan 21 '23 07:01 abhilashi

This looks like your ID confirmation might not have gone through? Try double checking Facebook.com/ID (found from the Ad Library API home page).

wangdavidm avatar Jan 25 '23 18:01 wangdavidm

The requirement is documented in the ad library api page. (https://www.facebook.com/ads/library/api)

You issue seems to be an access token issue.

are you able to make a successful query in this UI tool? https://developers.facebook.com/tools/explorer/

If yes, then you can copy that access token. If not, then double check steps mentioned in the ad library api page.

If the issue still exists, probably submit a bug report to the https://developers.facebook.com/support/bugs/

jm-yu avatar Jan 25 '23 18:01 jm-yu

I WAS FACING THIS ISSUE AND WHAT I DID TOOK 5 MINTS TO SOLVE I WAS FACING THIS ISSUE AND WHAT I DID TOOK 5 MINTS TO SOLVE I WAS FACING THIS ISSUE AND WHAT I DID TOOK 5 MINTS TO SOLVE

screencapture-localhost-8888-notebooks-fb-ads-library-tool-ipynb-2024-06-06-11_55_30

mhwahla avatar Jun 06 '24 07:06 mhwahla