{"id":16931039,"url":"https://github.com/avdata99/meta-api","last_synced_at":"2026-05-15T23:38:24.828Z","repository":{"id":184077699,"uuid":"671265576","full_name":"avdata99/meta-api","owner":"avdata99","description":"Some test work on Meta API","archived":false,"fork":false,"pushed_at":"2023-07-27T00:06:01.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T00:12:46.135Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avdata99.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-26T23:49:43.000Z","updated_at":"2023-07-26T23:49:44.000Z","dependencies_parsed_at":"2023-07-27T01:25:52.578Z","dependency_job_id":"bc6000a6-1162-45b1-925d-bac33b2027f7","html_url":"https://github.com/avdata99/meta-api","commit_stats":null,"previous_names":["avdata99/meta-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avdata99%2Fmeta-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avdata99%2Fmeta-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avdata99%2Fmeta-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avdata99%2Fmeta-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avdata99","download_url":"https://codeload.github.com/avdata99/meta-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244730055,"owners_count":20500357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T20:43:06.528Z","updated_at":"2026-05-15T23:38:19.809Z","avatar_url":"https://github.com/avdata99.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Some Meta API test\n\nSome notes about Meta api test.  \n\n## Get an access token\n\n```\nCLIENT_ID=XX\nCLIENT_SECRET=YY\n\ncurl -X GET \"https://graph.facebook.com/oauth/access_token?client_id=$CLIENT_ID\u0026client_secret=$CLIENT_SECRET\u0026grant_type=client_credentials\"\n```\n\nJSON Response.  \n\n```\n{\"access_token\":\"your-client-id|some-token\",\"token_type\":\"bearer\"}\n```\n\nTOKEN=your-client-id|some-token\n\n```\ncurl -G -d \"search_terms='cordoba'\" \\\n    -d \"ad_type=POLITICAL_AND_ISSUE_ADS\" \\\n    -d \"ad_reached_countries=['AR']\" \\\n    -d \"access_token=$TOKEN\" \\\n    \"https://graph.facebook.com/v17.0/ads_archive\"\n```\n\nIf your facebook app is not ready, you will get an error like this:\n\n```\n{\n    \"error\":{\n        \"message\":\"Application does not have permission for this action\",\n        \"type\":\"OAuthException\",\n        \"code\":10,\n        \"error_subcode\":2332004,\n        \"is_transient\":false,\n        \"error_user_title\":\"App role required\",\n        \"error_user_msg\":\n            \"You need to be assigned a role by the app owner to continue.\n            Learn more at\n            https://developers.facebook.com/docs/development/build-and-test/app-roles\",\n        \"fbtrace_id\":\"xxxx\"\n    }\n}\n```\n\nTo fix this you need to add the `ads_read` permission to your app.  \n\n\n\n## Other links\n\nMore references:\n\n - List your facebook apps: https://developers.facebook.com/apps/\n - Test api online: https://developers.facebook.com/tools/explorer\n - Test specific endpoint, `ads_archive`: https://developers.facebook.com/tools/explorer/?method=GET\u0026path=ads_archive%3Fad_reached_countries%3DAR\u0026version=v17.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favdata99%2Fmeta-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favdata99%2Fmeta-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favdata99%2Fmeta-api/lists"}