facebook-ad-library-scraper icon indicating copy to clipboard operation
facebook-ad-library-scraper copied to clipboard

Application does not have permission for this action

Open khaitranvan96kt opened this issue 4 years ago • 2 comments

I get access token from: https://developers.facebook.com/tools/accesstoken

curl -G \
> -d "search_terms='california'" \
> -d "ad_type=POLITICAL_AND_ISSUE_ADS" \
> -d "ad_reached_countries=['US']" \
> -d "access_token=<>" \
> "https://graph.facebook.com/v7.0/ads_archive"

And I get the following error

{
    "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": "AOxlW9wwYGgl5evOXSPcbiD"
    }
}

How do I solve this problem, please help me

khaitranvan96kt avatar May 23 '20 05:05 khaitranvan96kt

You need to enter your authentication token in place of <>. In order to do that you need to confirm your Facebook id first via facebook.com/id

You can refer to step 1 here: https://www.facebook.com/ads/library/api

I get access token from: https://developers.facebook.com/tools/accesstoken

curl -G \
> -d "search_terms='california'" \
> -d "ad_type=POLITICAL_AND_ISSUE_ADS" \
> -d "ad_reached_countries=['US']" \
> -d "access_token=<>" \
> "https://graph.facebook.com/v7.0/ads_archive"

And I get the following error

{
    "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": "AOxlW9wwYGgl5evOXSPcbiD"
    }
}

How do I solve this problem, please help me

paulwongx avatar Jul 04 '20 20:07 paulwongx

I get access token from: https://developers.facebook.com/tools/accesstoken

curl -G \
> -d "search_terms='california'" \
> -d "ad_type=POLITICAL_AND_ISSUE_ADS" \
> -d "ad_reached_countries=['US']" \
> -d "access_token=<>" \
> "https://graph.facebook.com/v7.0/ads_archive"

And I get the following error

{
    "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": "AOxlW9wwYGgl5evOXSPcbiD"
    }
}

How do I solve this problem, please help me

We can't confirm your Facebook id first via facebook.com/id in VietNam. Poor you and me!

khanhnguyen avatar Jun 12 '21 03:06 khanhnguyen