Is verification by passport or ID absolutely required for this API?

Open
#32 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
15/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale

Research direction

The issue names only a curl request to the Facebook Graph API and the returned OAuth error; no repository file or test is identified. Start by checking the API permission requirements referenced in the error and determine whether identity verification is required. Done means documenting a supported answer that explains the reported error and required access steps.

Written by the indexing model from the issue text.

Description

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

===>

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

I don't understand - will I have to verify my personal account by passport or ID to then be permitted to use this API?

Or what's this error about?

Dominant language
Python
Stars
338
Forks
131
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from facebookresearch/Ad-Library-API-Script-Repository

All issues in facebookresearch/Ad-Library-API-Script-Repository

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.