Posts under category Facebook Graph API

I'm creating a datacollector which would fetch data from public available ad in order to retrieve it on my app.

Basically, I would like to create a copycat of the official tool from Meta on my application.

I followed the Meta Ad Library API Guide, generated the user token access and when I make a call (e.g. https://graph.facebook.com/v20.0/ads_archive?ad_reached_countries=["FR"]&search_terms=savon&access_token=MY_TOKEN) I always have this return :

{ "error": {     "message": "Application does not have permission for this action",     "type": "OAuthException",     "code": 10,     "error_subcode": 2332004,     "is_transient": false,     "error_user_title": "App role required",     "error_user_msg": "You need to be assigned a role by the app owner to continue. Learn more at https://developers.facebook.com/docs/development/build-and-test/app-roles",     "fbtrace_id": "AEtWDzYFQypjN8PvUhnHwSQ" } 

I've seen many issues identical to mine (another one here) and I don't really understand as my user is an administrator, of a fully verified business.

I even found people saying it's because the app doesn't have the correct scopes (such as : ads_read, public_profile). I can't add the scope "ads_archive" on my app as I can't see it anywhere in App Review > Permissions and Features on my developer account, otherwise everything seems okay, here is the debug of my token :

{ "data": {     "app_id": "APP_ID",     "type": "USER",     "application": "APPLICATION_NAME",     "data_access_expires_at": 1734880167,     "expires_at": 1727107200,     "is_valid": true,     "scopes": [         "read_insights",         "pages_show_list",         "ads_management",         "ads_read",         "business_management",         "pages_read_engagement",         "pages_read_user_content",         "public_profile"     ],     "granular_scopes": [         {             "scope": "pages_show_list"         },         {             "scope": "ads_management"         },         {             "scope": "ads_read"         },         {             "scope": "business_management"         },         {             "scope": "pages_read_engagement"         },         {             "scope": "pages_read_user_content"         }     ],     "user_id": "USER_ID" } 

}

How to finally access the public data ?

graph.faceboo.com/v20/1075751080778492?fields=source,title

while try the above request to graph api it only giving the following result

{

"title": "5 Moments You Wouldn't Believe if Not Filmed",

"id": "1075751080778492"

}

even after I have gave permission and used both user access token and page access token. I need the source to my express.js app where I can download the video. How can I get that?

tried several articles among those one was promising but it answered 10 years ago and I want to know still facebook allowing to access public videos source url because it's not working now but still listed on the apis list.

I'm trying to create an ad account in my Facebook Business with this API endpoint:

https://developers.facebook.com/docs/marketing-api/reference/ad-account/

I'm using these parameters for my API call:

{   "name": "Graph API Test 123",   "currency": "EUR",   "timezone_id": "42",   "end_advertiser": "{my_business_id}",   "media_agency": "{my_fb_app_id}",   "partner": "NONE",   "funding_id": "{my_funding_id}" } 

According to the docs, a POST endpoint is available and valid.

When removing the funding ID from my request it works. I've checked if the payment method behind the funding ID is active and valid and it is. It's assigned to other ad accounts as well and I'm spending money with it.

Does anyone know why this happens? I'm pretty sure it used to work in the past.

API set up with Instagram Login.

Seeing the error in the attached screenshot.

  • The callback URL is a Railway.app domain

  • The verify token is a unique code that is self generated.

  • After entering these details, we should see a GET request on our server logs - I do not see anything.

And I receive an error code: The callback URL or verify token couldn't be validated. Please verify the provided information or try again later.

More information: https://developers.facebook.com/community/threads/1460022321208053/?post_id=1460022324541386

we tried this multiple times over different days, and tried different length codes with varying characters.

Is there a way to get the status of a post through the Facebook API, specifically whether monetization is enabled or if it has been restricted due to violations of Facebook's monetization policies or copyright issues?

I searched through the Facebook API documentation, including sections on post insights, but couldn't find any clear reference to retrieving the monetization status.