Facing issue with FB leads, some leads are getting lost as no webhook call received. And this is a huge issue for the customer as he spends thousands on Ads daily. I think issue is regarding Ig Platform leads, as we have checked that most leads that we are not receiving are marked as Ig in platform when we download it,

Hi, guys
The problem has occurred today. We got error 368, error_subcode 1404006, "A security check is required to proceed." when sending POST request to /comments endpoints.
There's nothing wrong with the API token.
I've found that error 368 means Temporarily blocked for policies violations, but 1404006 is undocumented, so we couldn't pinpoint the source of the proplem here. https://developers.facebook.com/docs/graph-api/guides/error-handling
Is there any way I could get more information regarding the matter? This is affecting our client's business right now
Thank you in advance.

I'm pretty new to python and Flask development. I'm primarily a frontend JavaScript/React developer.

I am building a tool that uses the Google Ads api, and their documentation had me create a yaml file with my refresh tokens and other important info.

I'm trying to deploy my flask app to render.com and I'm unsure what to do with the yaml files since I want to keep my tokens secure. Any advice?

So far I've tried adding my tokens in an env file and reading them that way, but it looks like the google ads api needs the yaml file.

I want to get Leadinfo from my Lead ads using python and the facebook API.

I have tried this:

import json from facebook_business.api import FacebookAdsApi from facebook_business.adobjects.adaccount import AdAccount from facebook_business.adobjects.leadgenform import LeadgenForm from facebook_business.adobjects.lead import Lead access_token = '<my_token>' ad_account_id = 'act_my_ad_acount' FacebookAdsApi.init(access_token=access_token) ad_account = AdAccount(ad_account_id) ads = ad_account.get_ads(fields=[         Ad.Field.id,         Ad.Field.name,     ]) leads = [] for ad in ads:   lead = ad.get_leads(fields=[     Lead.Field.id,     Lead.Field.field_data     ])   leads.extend(lead) print(leads) 

However it breaks due to this error:

There have been too many calls from this ad-account. Please wait a bit and try again. 

I understand that I should be doing some kind of batch call. But I found the documentation too hard do understand. It took me three days just get the code to list the ads in my account.

Could someone, please help me?

My end goal is to retrieve the information that the users sent on the leadforms ads, ei. their name, telephone, etc..