facebookresearch / Ad-Library-API-Script-Repository

GitHub repository of commonly used python scripts that allows everyone to pull data via the Ad Library API
Other
213 stars 84 forks source link

Application doesn't have permission for this #22

Open abhilashi opened 1 year ago

abhilashi commented 1 year ago

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.

wangdavidm commented 1 year ago

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).

jm-yu commented 1 year ago

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/

mhwahla commented 3 months ago

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