Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application does not have permission for this action #6

Open
khaitranvan96kt opened this issue May 23, 2020 · 2 comments
Open

Application does not have permission for this action #6

khaitranvan96kt opened this issue May 23, 2020 · 2 comments

Comments

@khaitranvan96kt
Copy link

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
Copy link

paulwongx commented Jul 4, 2020

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

@khanhnguyen
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants