Posts under category Facebook Graph API

I am not able to get list of scope from `App Review Requests` in facebook app review page due to recent change which implement Use Cases.

I want to add some scope - pages_manage_posts, pages_show_list, business_management, pages_manage_engagement, pages_read_engagement, read_insights etc to be added into my facebook application, previously we used to get Permissions and Features under app review page. Now I am not able to get list of scope from App Review Requests in facebook app review page due to recent change which implement Use Cases.

I am attaching application snapshot from old and new. New app OLD app

I am expecting way to add more scope to be added into new workflow using usecase but everytime i try to add new usecase there are none to add.

I created a new app, and did all the required steps; system users added my personal number as a test number for getting messages and verified it. On making a curl call it does say message sent but I did not recieve the message. I read here that I need to initiate the conversation, I added the contact and sent a "Hi", first it was not delivered at all, second,it did not send any message. I am trying to use FlowBridge to integrate Voiceflow but not working. Below is the Hello World curl request:

 curl -i -X POST \   https://graph.facebook.com/v21.0/505794375953552/messages \   -H 'Authorization: Bearer xxxxxxxx' \   -H 'Content-Type: application/json' \   -d '{ "messaging_product": "whatsapp", "to": "+923009290538", "type": "template", "template": { "name": "hello_world", "language": { "code": "en_US" } } }' HTTP/2 200  content-type: application/json; charset=UTF-8 vary: Origin x-business-use-case-usage: {"476948972175537":[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]} access-control-allow-origin: * facebook-api-version: v21.0 strict-transport-security: max-age=15552000; preload pragma: no-cache cache-control: private, no-cache, no-store, must-revalidate expires: Sat, 01 Jan 2000 00:00:00 GMT x-fb-request-id: AzyBpSOlGk337z5dcfK5xz9 x-fb-trace-id: HXfstE61zeT x-fb-rev: 1019058758 x-fb-debug: I+v2luvdeTX0UqrN91y82WqYcDyc5VVff3pfLc+7t1hEjZePGLoQ+M61pCNjx9Kuy1ZuymARjsB3c9eNPBeYKA== content-length: 207 date: Mon, 23 Dec 2024 05:14:56 GMT x-fb-connection-quality: EXCELLENT; q=0.9, rtt=23, rtx=0, c=10, mss=1380, tbw=3394, tp=-1, tpl=-1, uplat=540, ullat=0 alt-svc: h3=":443"; ma=86400 {"messaging_product":"whatsapp","contacts":[{"input":"+923xxx8","wa_id":"xxx"}],"messages":[{"id":"wamid.HBgMOTIzMDA5MjkwNTM4FQIAERgSQkVBMEJGRDAzQzU3NUYwNUIxAA==","message_status":"accepted"}]}%    

Jus to clarify my initial "Hi" message still has a single tick

We got this message when we tried to get an attachment comment for one of our accounts:
{
"error": {
"message": "Unsupported request - method type: get",
"type": "GraphMethodException",
"code": 100,
"fbtrace_id": "AoCtBAwgyPeW-UuNbJlvB2D"
}
}
Doing further investigation, we determined that the API breaks when attempting to get a story attachment for a comment. The API breaks unless I reduce the param request fields for attachments to id,attachment{media_type,title,type,unshimmed_url,url}, but we still require attachment.media and attachment.description for our capturing content process.
Has anyone faced this error before ? Are there any workaround to solve this issue ?

I am experiencing an issue with the Facebook API where certain permissions requested by my application are not being included in the user's access token, even though the user has granted all requested permissions.
Requested Permissions: - ads_management - business_management - leads_retrieval - pages_manage_ads - pages_manage_metadata - pages_read_engagement - pages_show_list
Observed Behavior: After the user grants all the requested permissions, the access token retrieved only includes the following permissions:

{
"data": [
{
"permission": "pages_show_list",
"status": "granted"
},
{
"permission": "ads_management",
"status": "granted"
},
{
"permission": "pages_read_engagement",
"status": "granted"
},
{
"permission": "pages_manage_metadata",
"status": "granted"
},
{
"permission": "pages_manage_ads",
"status": "granted"
},
{
"permission": "public_profile",
"status": "granted"
}
]
}
Missing Permissions:
business_management
leads_retrieval
Impact: The absence of the leads_retrieval permission causes the following error when accessing the endpoint https://graph.facebook.com/xxxxx/subscribed_apps:
{
"error": {
"message": "(#200) To subscribe to the leadgen field, one of these permissions is needed: leads_retrieval",
"type": "OAuthException",
"code": 200,
"fbtrace_id": "ANFgjRDObuYno84WEkPHOED"
}
}

need some help i'm trying to create an adset with cities in the targeting object but i'm getting an error

{     "error": {         "message": "Invalid parameter",         "type": "OAuthException",         "code": 100,         "error_data": "{\"blame_field\":\"targeting\"}",         "error_subcode": 1487756,         "is_transient": false,         "error_user_title": "Locations can't be used",         "error_user_msg": "Some of your locations overlap. Try removing a location.",         "fbtrace_id": "AApf6HmHZneXVFLD1U8BK-D"     } } 

steps to reproduce 1- create a campaign

curl -X POST https://graph.facebook.com/$API_VERSION/$ACCOUNT_ID/campaigns -F 'name=My Campaign' \    -F 'objective=OUTCOME_AWARENESS'\    -F 'status=PAUSED' \ -F 'special_ad_categories=[]'\    -F "access_token=$ACCESS_TOKEN" 

then, create an adset for this campaign

curl -X POST https://graph.facebook.com/v21.0/$MY_META_ACCOUNT_ID/adsets \   -F 'name=My Ad Set' \   -F 'campaign_id=6680088172618' \   -F 'daily_budget=1000' \   -F 'targeting={"geo_locations":{"countries":["US"],"cities":[{"key":2427178}]}}' \   -F "access_token=$MY_META_ACCESS_TOKEN" \ -F "billing_event=IMPRESSIONS"