Posts under category facebook-graph-api

I have a requirement to develop an iOS application in Unity that interacts with a server on Node.js.

One of the functions of this application is to display a WebView window. Within this WebView window, events can occur that we want to track and send data about these events to our application in Facebook (Meta), so we can then launch an advertising campaign optimized for one of the tracked events. We have a tracking system that identifies, for example, a purchase on the website displayed within the Unity application (this system is not built into the application), and we also have endpoints on our server that the Unity application accesses upon the first installation and each launch of the application. These endpoints send event data for the first installation and each launch using Conversions API to Facebook (Meta).

The problem is that we are not receiving SKAdNetwork attribution data for these events and, accordingly, cannot launch an advertising campaign for iOS 14+ users, which is a crucial criterion for us.

Facebook (Meta) Ads Manager gives us the following error when creating an advertising campaign for the application:

Facebook (Meta) Ads Manager message

Set up app events: To choose app events as the optimization for ad delivery, you need to set up app events in Events Manager first.

which most likely means that our SkAdNetwork Events are not configured. But we can’t configure them because we don’t receive SkAdNetwork attribution data. We are not getting this data because our SKAdNetwork setup is not complete, which is part of the original question (how do we do this?). Setting up SkAdNetwork Events requires SkAdNetwork Attribution data. We are receiving Event Data from our Graph API request. This data shown on a screenshot “Facebook (Meta) Event Data”. If this data will contain SkAdNetwork Attribution data then we will able to set up SkAdNetwork Events

Event data is successfully displayed in Facebook (Meta):

Facebook (Meta) Events data

How can we add SKAdNetwork support to the current configuration? If this is not possible in the current configuration, do we need to use the Facebook SDK for this?

This is the request that the server makes to Facebook (Meta) using the Conversions API:

var request = "https://graph.facebook.com/v20.0/{FacebookAppID}/activities"; var data = [     {         "event": "CUSTOM_APP_EVENTS",         "custom_events": [           {             "_eventName": "fb_mobile_purchase",             "_valueToSum": 100,             "fb_currency": "USD"           }         ],         "advertiser_id": "111111",         "extinfo": "[\n  \"mb1\"\n]",         "action_source": "website",         "event_time": {time},         "event_source_url": "https://example.com",         "advertiser_tracking_enabled": 1,         "application_tracking_enabled": 1,         "user_data": {           "external_id": "user123",           "client_ip_address": "192.168.1.1",           "client_user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",           "fbc": "fb.1.1625247600.abcdefg",           "fbp": "fb.1.1625247600.1234"         }       } ]; 

Previously, our applications used AppsFlyer, but we decided to discontinue its use. With AppsFlyer, we simply configured the MMP integration to set up SKAdNetwork Events on Facebook (Meta) and everything worked. I tried to do the MMP integration for the new approach, but it didn't work.

I have a script that pulls in each ad, the thumbnail, title, body and a few other bits into Google Sheets.

I have some responses coming back with the title and body, and some not.

here is the graph api I'm running to try find why, but still coming up short.

act_/ads?fields=id,name,creative,adcreatives{title,body}

I then just get an empty result for some

{       "id": "< ID >",       "name": "< AD NAME >",       "creative": {         "id": "< ID >"       },       "adcreatives": {         "data": [           {             "id": "< ID>"           }         ]       }     } 

Any idea on why it returns values for some and not others? The ads have those values present in the account.

a few months ago I requested the corresponding permissions in my app V.18.0: pages_messaging, public_profile, pages_manage_metadata, pages_read_engagement, pages_show_list, and business_management. All permissions were granted. However, when trying to make the connection, no pages appeared for me to connect to; it showed 'list is empty'. So, I updated my app to V.20.0. Now, if there is one page, I can establish the connection, but if there are 2 or more pages, it still shows as 'list is empty'. Do you have any advice on how to solve this? I've checked permissions settings for the pages and the app, but I can't identify the issue.

I expected all the Facebook pages I have to appear in my app so that I could select one or all of them and receive their Messenger messages in my application. I tried upgrading from version 18.0 to version 20.0, but it still doesn't work.

I want to do social media listening for public data on FB and IG using the Graph API, but it's asking for business verification. How do companies get data without scrapers? Any suggestions on accessing data without business verification?

I was unsuccessful using the GRAPH API, due to the requirement of business verification. I am looking to understand how companies do social media listening as it is an integral part right now.

I create a webhook that send the lead to our CRM. Everything works fine: I can retrieve the lead, the form and the page data. Now I need to retrieve which business account create the ads for the leads. The ADS are managed by two different agencies and I need to understand each campaign origin.

I think is something that I can retrieve from the form_id but I don't know how. Could someone help me out on this one? Thank you