Posts under category Facebook Graph API

Can we create Media template with using Resumable Upload API of Meta, if we have the https url of the media

We wanted the create media template using meta cloud api without using resumable upload api.

eg payload : { "category": "MARKETING", "name": "flig_confim", "language": "en", "allow_category_change": true, "components": [ { "type": "BODY", "text": "This is your flight confirmation for {{1}}-{{2}} on {{3}}", "example": { "body_text": [ [ "Delhi", "Banglore", "20th Monday" ] ] } }, { "type": "FOOTER", "text": "To manage the reservation signin to travel portal" }, { "type": "HEADER", "format": "IMAGE", "example": { "header_handle":"4::YX..." } } ] }

Below is the example to create media template with header_handle info got during resumable api. But we wanted to create media tempate without using resumable api, where user will provide the https url of the image/document and we need to create template using that link instead of header_handle

Hi everyone,
Since 19:20 Bangkok time today, I've been encountering an issue when trying to send images via the Messenger API. I'm receiving the following error:
'code': 100,
'error_subcode': 2018047
This error occurs when I attempt to send an image using an S3 URL that has worked without issues for a long time. Here's an example of the API request body I'm using (with sensitive data hidden):
{
"message": {
"attachment": {
"payload": {
"url": "https://.s3.ap-southeast-1.amazonaws.com/.jpeg"
},
"type": "image"
}
},
"messaging_type": "MESSAGE_TAG",
"recipient": {
"id": ""
},
"tag": "CUSTOMER_FEEDBACK"
}
This has been working fine until today, and I'm not sure what's causing the sudden issue. Has anyone else experienced this or knows what might be going on? Any insights or advice would be greatly appreciated.
Thank you!

There seems to be a bug in the facebook marketing api v20.0

When you try to create AdSet with IMPRESSION as an optimization goal for the campaign objective as OUTCOME_TRAFFIC, the api always returns

{ "error": { "message": "Invalid parameter", "type": "OAuthException", "code": 100, "error_data": "{"blame_field_specs":[["optimization_goal"]]}", "error_subcode": 2490408, "is_transient": false, "error_user_title": "Performance goal isn't available", "error_user_msg": "You can't use the selected performance goal with your campaign objective. Please select a different goal or edit your campaign.", "fbtrace_id": "AemKqGCO7_RymPyjuXcJJYp" } }

I tried from both facebook business sdk of v20.0 and using graph url v20.0

https://graph.facebook.com/v20.0/act_12xxxxxxxx/adsets?access_token=EAAwpjCkZBW7YBO4CSJex2ek2whxxxxxxxxxxxxxxxxx

There is no problem with v19.0 and v18.0

Has anyone came across this problem?

I'm experiencing an intermittent issue when calling Facebook Graph API endpoints from my server and localhost using the Node Facebook SDK. The error message I receive is:

Error:

Message: "An unknown error has occurred." Code: 1

There's any more useful information in the error nor in the response headers.

This error happens sporadically and, when it occurs, it can last for several hours or even days. I’m unable to reproduce it consistently.

**Interestingly, when I make the same API calls through Postman or the Graph API Explorer, everything works fine without any errors. ** Has anyone encountered this issue before or have insights on why this might be happening? Any suggestions on how to troubleshoot or resolve this would be greatly appreciated!

Thank you!

I inspected the facebook error response searching for any more information about the error, but there's any


This happens to me with different requests. See an example:

https://graph.facebook.com/v20.0/campaign-id-example/adsets?fields=optimization_goal%2Cpromoted_object&access_token=xxxx