Posts under category facebook-graph-api

I'm managing a local volleyball league Facebook page and would like to stream the live matches from my GoPro to this page. I wanted to automate things so when GoPro connects to the RTMP server and starts streaming my script (could be Python or everything else) would create a stream on Facebook page, fetch the FB stream key and pass it to the FFMpeg.

Is this goal achievable using FB API? I have verified developer account in FB and the page has ~1k likes. Do I need to create a Facebook app in order to be able to create live streams? Should this app be somehow public or can it be in a form of cli/python script?

I've tried to use the facebook API but could find the direct answer to my question

I am trying to fetch data from some Instagram accounts that are on Meta Business Suite, most of them I have success to retrieve using Graph API and Instagram API, but one of them I cannot find in documentation.

It is Link Clicks on Instagram Accounts.

So I need help to retrieve this metric. Can someone help me?

I have tried these metrics: website_clicks, text_message_clicks, phone_call_clicks and profile_links_taps but none of them is the number that shows on Business Suite even adding those metrics.

I have been reading all over documentation but it is so confusing and annoying.

When using instagram graph api of meta, rate limit is the number of API calls an app or user can make within a given time period. Calls within one hour = 200 * Number of Users. But when the number of user be increased, will total_time (A whole number expressing the percentage of total time allotted for query processing.) be increased too?

Will total_time be increased too?

I am using meta business suite leads center screen to manage potential candidates. But I want to write a tool to export the information on the screen of each candidate such as label, Assigned to, Stage.. to save to a separate database system.

Leads center image

I also know the api below can get basic information, but it seems to need ad_id, form_id. Although I am not using any ad at the moment. Can it be solved using webhook?

https://developers.facebook.com/docs/marketing-api/guides/lead-ads/retrieving

I'm trying to fetch insights for my ad sets using the Facebook Graph API. Here are the parameters and the request I'm making:

params_insights_get = {     "access_token": "ACCESS_TOKEN",     "level": "adset",     "fields": "reach,impressions,estimated_ad_recall_rate,frequency,full_view_impressions,full_view_reach,clicks,inline_link_clicks,outbound_clicks,video_play_retention_0_to_15s_actions,video_play_retention_20_to_60s_actions,actions,spend,instagram_upcoming_event_reminders_set,inline_link_click_ctr,outbound_clicks_ctr,unique_inline_link_clicks,cost_per_ad_click,cost_per_conversion,cost_per_one_thousand_ad_impression,cost_per_outbound_click,cost_per_thruplay,cost_per_unique_action_type,cost_per_unique_click,cost_per_unique_inline_link_click,cost_per_unique_outbound_click,cost_per_action_type,cpc,cpm,cpp,ctr,optimization_goal,adset_id,adset_name", } root_url = f"https://graph.facebook.com/v19.0/" campaigns_ext = "/campaigns" adsets_ext = "/adsets" insights_ext = "/insights" response_insights_get = requests.get(     root_url + campaign_id + insights_ext, params=params_insights_get ) 

This was working fine for the last six months. However, recently, I keep getting the following error response:

{     "error": {         "message": "Service temporarily unavailable",         "type": "OAuthException",         "is_transient": False,         "code": 2,         "error_subcode": 1504018,         "error_user_title": "Your request timed out",         "error_user_msg": "Please try a smaller date range, fetch less data, or use async jobs",         "fbtrace_id": "AvoEH7ogR7jlllCmCC943cH",     } } 

The date range I need is 7 days, i.e. the default value, and I need all the data in the query. I've tried async jobs, but the jobs keep failing. Interestingly, this only affects one particular campaign in my sample adaccount, the others work fine.