Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Events not reaching Facebook / SKAdNetwork attribution problems #1667

Closed
5 tasks done
danmaas opened this issue Feb 26, 2021 · 110 comments
Closed
5 tasks done

App Events not reaching Facebook / SKAdNetwork attribution problems #1667

danmaas opened this issue Feb 26, 2021 · 110 comments

Comments

@danmaas
Copy link

danmaas commented Feb 26, 2021

(this is a follow-up to consolidate the main questions from #1632 and #1639)

To summarize, despite trying very hard to follow all the best practices around iOS 14 App Events and install attribution, we are still failing to get events to appear in Facebook's App Events Insights panel, and failing to attribute installs to iOS 14 campaigns in Ads Manager. We are not sure if this is a code bug, or incorrect interpretation of the documentation, or maybe an issue with Facebook's internal data systems rather than the iOS SDK.

Checklist

Environment

Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:

  • Xcode Version: 12.4
  • Swift Version: N/A
  • Installation Platform & Verison: Cocoapods version 1.10.0

Goals/Expected Results

  1. The Facebook SDK remains dormant until we receive user consent to send data, after which:
  2. App Events appear in our Facebook App's Events insights panel, including both automatically-logged events like App Install plus manually-logged events from [FBSDKAppEvents logEvent].
  3. iOS 14 ad campaigns in Ads Manager show plausible App Install numbers, after waiting the proper 3 days for SKAdNetwork attribution to occur.

Note: at no point is the user signing in with a Facebook account, nor do we want to touch the IDFA at all. We only want to send what is possible without an active login session and without asking for IDFA.

(Actually, I'm afraid the docs are not very clear about whether this is even possible: can we send log events to Facebook without first asking the user to sign in, or querying the IDFA? It would be nice to clarify what data can be logged, if any, without these steps.)

Actual Results

All App Events do appear in the iOS device log, when enabled via [FBSDKSettings enableLoggingBehavior:FBSDKLoggingBehaviorAppEvents];. This includes both automatically-logged and manually-logged events.

However, we do NOT see any events in the Events Manager Test Events panel (https://business.facebook.com/events_manager2/list/app/APPID/test_events), nor the Facebook App Insights panel (https://www.facebook.com/analytics/APPID/AppEvents/), even after 1+ days of waiting.

We can get events to appear in the Test Events panel and App Insights, but only if we do two weird things that seem to contradict the documentation:

  1. We set the _implicitlyLogged flag to 1 on all events. This is an internal flag that the SDK normally adds only to automatically-logged events. Since automatically-logged events were occasionally appearing on the Test Events panel, we tried adding this flag ourselves, and suddenly all the events started appearing reliably (except App Install - see 2.).
  2. We send an App Install event manually by logging a custom event named fb_mobile_first_app_launch. Even though we do set [FBSDKSettings setAutoLogAppEventsEnabled:YES], the SDK doesn't seem to be sending its own App Install event.

With the above hacks, I think we are logging app events successfully.

However, we are doubtful that iOS 14 SKAdNetwork attribution is fully working yet, since we see far fewer App Install events in the Ads Manager interface than we would expect, relative to the number of link clicks and typical conversion rates of our campaigns. (based on historical trends, we are pretty confident that our click-to-install conversion rate should be at least 30%, but in Ads Manger we only see about 10% click-to-install on iOS 14 campaigns, which seems abnormally low).

Steps to Reproduce

Here is how we are interacting with the SDK:

Info.plist, AppDelegate.m:

	<key>FacebookAdvertiserIDCollectionEnabled</key>
	<false/>
	<key>FacebookAutoInitEnabled</key>
	<false/>
	<key>FacebookAutoLogAppEventsEnabled</key>
	<true/>

After receiving user consent to share data (with explicit UI in GDPR countries, otherwise implicitly):

[FBSDKApplicationDelegate initializeSDK:nil];
[FBSDKSettings setAdvertiserTrackingEnabled:YES];
[FBSDKSettings setAutoLogAppEventsEnabled:YES];

i.e., we want to initialize the SDK and then send as much data as we possibly can, except without touching the IDFA.

After making the above 3 calls, I would expect to see events like App Install, App Launch, and our manually-logged events to start appearing in the Events Insights panel. (on Android, using the equivalent SDK calls, they indeed do appear). Also, I would expect that we should start seeing reasonable App Install counts on iOS 14 ad campaigns via SKAdNetwork, after waiting the proper 3-day period for delayed attribution.

@berseck
Copy link

berseck commented Mar 1, 2021

I'm having same issue.
While testing on 14.5 beta 1 I could make everything work if I had all 3 flags on:

setAutoLogAppEventsEnabled:YES
setAdvertiserIDCollectionEnabled:YES
setAdvertiserTrackingEnabled:YES

And then initializing the API

When I started using the Beta 2 nothing works anymore no events, only app_launch

I was expecting based only on the documentation that if I set the auto log events on I would expect to have the app installs and app launch events. But... this is not what is happening.

@wcleghorn
Copy link

wcleghorn commented Mar 3, 2021

+1 and in addition:

Looking at the iOS 14.5 requirements put forward by Apple:

https://developer.apple.com/app-store/user-privacy-and-data-use/#permission-to-track

It would appear (example (4)) that an app will be required to receive the user’s permission through the AppTrackingTransparency framework if the Facebook SDK is installed.

We know that setAdvertiserTrackingEnabled must be enabled in order for an app to send the app_install event automatically.

https://github.com/facebook/facebook-ios-sdk/blob/v9.0.1/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsUtility.m#L401

@danmaas can you clarify that your Goals/Expected Results (1) means using ATT?

It would be nice for clarification around this in Facebook's documentation when installing the SDK.

@danmaas
Copy link
Author

danmaas commented Mar 3, 2021

No, we don't want to touch ATT. The "consent" I was referring to above is more related to GDPR, where we have to get consent even for first-party data.

We made a product-level decision not to show the ATT pop-up dialog or use IDFA-based tracking, because it would be perceived very negatively by our user base.

If not using ATT/IDFA means that we cannot log any in-app events, other than SKAdNetwork-based install events, then so be it. But SKAdNetwork attribution seems broken right now and I really hope we can get it working.

My understanding of the Apple and Facebook docs is that it should be possible to get SKAdNetwork to feed App Install events into our iOS 14 ad campaigns, without ATT or IDFA. If I am wrong about this, please let me know!

(https://developer.apple.com/app-store/user-privacy-and-data-use/#attributing-app-installations):

"SKAdNetwork allows advertising networks to attribute app installations while preserving user privacy, so you do not need to use the AppTrackingTransparency prompt."

@wcleghorn
Copy link

Thanks for the clarification, we are looking for the same thing. I'll let you know if I find anymore details or confirmation on anything.

@danmaas
Copy link
Author

danmaas commented Mar 3, 2021

An update on SKAdNetwork - we are starting to think that the SKAdNetwork App Install counts are actually correct, and it's just that Facebook's iOS 14 campaigns are doing a terrible job of targeting users who will install our app after clicking on the ad.

We usually see click-to-install conversion rates of 30-40% on other types of campaigns, but the new iOS 14 campaigns are only delivering 5-10% click-to-install rates.

The above results are from about $1,000 in ad spend on iOS 14 campaigns. Is that just too little to teach the FB algorithms to find good users? We hesitate to throw more money at this without knowing whether it is likely to improve things XD.

@JustinGanzer
Copy link

JustinGanzer commented Apr 1, 2021

Experiencing the same "issue". We've increased spending for iOS 14 campaigns but the click to install conversion is terrible when compared to earlier campaigns at something like 4% or less.
Android and Pre iOS14 campaigns with the same content did hugely better.

It's so bad that I've spent days looking through the documentation and source code of the facebook sdk only to find everything work as expected and end up in this github issue.

@wkunert
Copy link

wkunert commented May 9, 2021

We have the same use case – we would like to send events without IDFAs or other user information which could be used to identify a user. Without sending events we are not able to config them for the SkAdNetwork. Could you (@danmaas) elaborate on how you set the _implicitlyLogged flag to 1 on all events?

@danmaas
Copy link
Author

danmaas commented May 9, 2021

@nutlike Here is the patch we use to force the _implicitlyLogged flag to 1 on all events, by adding it inside of the wrapper around AppEventsLogger.logEvent()/logPurchase(). This applies to the react-native-fbsdk layer on top of the iOS SDK, but I'm sure you can do something similar in your own environment.

diff --git a/node_modules/react-native-fbsdk/src/FBAppEventsLogger.js b/node_modules/react-native-fbsdk/src/FBAppEventsLogger.js
index 25a99de..658f461 100644
--- a/node_modules/react-native-fbsdk/src/FBAppEventsLogger.js
+++ b/node_modules/react-native-fbsdk/src/FBAppEventsLogger.js
@@ -83,6 +83,11 @@ module.exports = {
     let parameters = null;
     if (typeof args[0] === 'object') {
       parameters = args[0];
+    } else {
+      parameters = {};
+    }
+    if(true) { // DJM - the SDK doesn't seem to get events through to Facebook unless this flag is set
+      parameters['_implicitlyLogged'] = '1';
     }
     AppEventsLogger.logEvent(eventName, valueToSum, parameters);
   },
@@ -95,6 +100,10 @@ module.exports = {
     currencyCode: string,
     parameters?: ?Params,
   ) {
+    if(!parameters) { parameters = {}; }
+    if(true) { // DJM - the SDK doesn't seem to get events through to Facebook unless this flag is set
+      parameters['_implicitlyLogged'] = '1';
+    }
     AppEventsLogger.logPurchase(purchaseAmount, currencyCode, parameters);
   },
 

Note, due to the lack of feedback on this issue of missing conversion events, and the poor performance of our test iOS 14 ad campaigns, we have stopped advertising on Facebook for now. We shifted our resources to better-performing sources, like iOS App Store campaigns.

@arodriguezju
Copy link

@danmaas Do I understand correctly, that if one just needs SKAdNetwork data there is no need of setting any SDK flag? Thanks!

@danmaas
Copy link
Author

danmaas commented May 24, 2021

I think SKAdNetwork install events (if not purchase events) will come through automatically, without manually setting the _implicitlyLogged flag. I'm not 100% sure through.

@kesha-antonov
Copy link

Same issue

@SonChanthem
Copy link

Hello @danmaas ,
I also have the same issue here. I've follow you suggestion. But the events don't log at all even Standard and Custom Events.
I've test on device iPhoneX OS 14.1.

  • FB SDK latest version v11.0
  • Noted: I've tried to test on device below iOS 14, the event was record in Analytic and Events Manager.

Anything more suggestion for this?

I'm really appreciate of your shared.

Thank you

@angelchavez2
Copy link

source

@angelchavez2
Copy link

exit

@tgioihan
Copy link

Same with me, anyone knows how to resolve it ?

@saagarvaru
Copy link

I am also facing this issue. I have tried everything under the sun to get event to log and nothing is showing up in the events test page

@jonathanroze
Copy link

Same issue, I tried on many versions of Facebook SDK and it's always the same result.. no events

@rahulsmehta
Copy link

Bigger picture, we're noticing that only Mobile App Install events are showing in the Ads Manager (both using the FB SDK as well as Adjust after we switched to using an MMP). Also CPMs have gone up across the board, but that seems to be a bigger problem overall due to the iOS 14 rollout

@VictorIkonnikov
Copy link

I have the same issue. The documentation says to disable this in .plist and call after initialization but it doesn't work

FBSDKSettings.setAutoLogAppEventsEnabled(true)
FBSDKSettings.setAdvertiserIDCollectionEnabled(true);

but for both Xcode says "Type has no member 'setAutoLogAppEventsEnabled'"

@Fublvckmagik
Copy link

Fublvckmagik commented Jul 4, 2021

Did someone solve the problem with IOS 14+ ?
On my old iPhone 5s I received events, but on devices with iOS 14+ - no

@uniqby
Copy link

uniqby commented Jul 5, 2021

Same issue, I tried on many versions of Facebook SDK and it's always the same result.. no events

@Fublvckmagik
Copy link

Fublvckmagik commented Jul 5, 2021

I am using AppsFlyer and did a Facebook integration.
With AppsFlyer I started getting all the events!
This temporarily solves my problem for IOS 14+

@KylinChang
Copy link
Contributor

KylinChang commented Jul 10, 2021

Hi @danmaas and other people who may have experienced the same issue ,

  1. Starting from iOS 14.5 and above, the flag AdvertiserTrackingEnabled is false by default and we will drop events if the flag is false. You will need to call setAdvertiserTrackingEnabled:YES to send the app events and you don't need to set _implicitlyLogged flag. If you cannot see the app events in Test Events page after you call setAdvertiserTrackingEnabled:YES, can you double check you logged in FB App on the same device?
  2. For SKAN attribution, we will attribute events to the install even if you don't call setAdvertiserTrackingEnabled:YES. The reason of not receiving enough App Install counts on iOS 14 ad campaigns via SKAN may be SDK not being initialized. Did you only initialize the SDK when user opt-in consent? If so, we only receive install postbacks for those opt-in users. Also, can you double check whether the App install count via SKAN is now reasonable?

It'd be better if you could provide your App ID to my email kylinchang@fb.com and I can investigate deeper on the issue. Thanks!

@Fublvckmagik
Copy link

Fublvckmagik commented Jul 10, 2021

@KylinChang Hello, o have this code for initializing FBSDK in AppDelegate:

    ApplicationDelegate.shared.application(application,didFinishLaunchingWithOptions: launchOptions)
    Settings.setAdvertiserTrackingEnabled(true)
    Settings.isAdvertiserIDCollectionEnabled = true

After this code, in controller I call Event method :
AppEvents.logEvent(.purchased)

Also in info.plist file I have this parameters:
<key>FacebookAppID</key> <string>797368191022195</string> <key>FacebookDisplayName</key> <string>AppName</string> <key>SKAdNetworkItems</key> <array> <dict> <key>SKAdNetworkIdentifier</key> <string>cstr6suwn9.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>v9wttpbfk9.skadnetwork</string> </dict> <dict> <key>SKAdNetworkIdentifier</key> <string>n38lu8286q.skadnetwork</string> </dict> </array>

What am I doing wrong?

@KylinChang
Copy link
Contributor

Hi @Fublvckmagik , What's the issue you are having now, App Events not showing up in "Test Events" or SKAN install number issue? It seems that you don't call the method initializeSDK , you will need to explicitly call initializeSDK after v9.0.0 .

@revolter
Copy link
Contributor

The initializeSDK method was removed.

@Fublvckmagik
Copy link

Fublvckmagik commented Jul 12, 2021

Hi @Fublvckmagik , What's the issue you are having now, App Events not showing up in "Test Events" or SKAN install number issue? It seems that you don't call the method initializeSDK , you will need to explicitly call initializeSDK after v9.0.0 .

Facebook don't receive my events
In Facebook documentation says that initialization happens here:
ApplicationDelegate.shared.application(application,didFinishLaunchingWithOptions: launchOptions)

Also I dint find "initializeSDK" method, just ApplicationDelegate.initialize()

Update:
ApplicationDelegate.initialize() made Events work!!!!
Thank you

@appcornerit
Copy link

appcornerit commented Feb 22, 2022

Hi, I'm not sure if it helps, I start seeing events after completing the connection of the data origin process by sending me an email with the instructions. Isn't weird enough?

@h4z4rd0uSm1ke
Copy link

I've also noticed custom events showing up in Overview section with filter "All Events" or "Custom Events" but not in the real time section.

@ggirotto
Copy link

Why is so difficult to Facebook provide a SIMPLE guide about the impacts and actions needed with new Apple ATT? When ATT request is necessary? What events are impacted if not requesting ATT?

@jiafeiinfinit
Copy link

Hi
Did anyone resolve this issue? we get the same issue here. the app event does not show on the dashboard with the error message - Not receiving Events via Facebook iOS SDK

FBSDK version : 12.2.1
IOS version: 14.8.1

@h4z4rd0uSm1ke
Copy link

h4z4rd0uSm1ke commented Mar 3, 2022

Just to contribute to this thread.
I can confirm that although events were not showing up in the real time section nor even in the Overview section, once we published our app in the Apple Store, events are now showing up in the Overview section, although there seemed to be a delay of 1-2 days since they all started showing correctly.

@dreampowder
Copy link

dreampowder commented Apr 24, 2022

Hi everyone,
everything is working except 'app install' seems to be 'inactive'. does anyone with the similar results have a solurion?

@erikmillergalow
Copy link

I'm having trouble parsing through the FB docs and convos around this, can anyone confirm/deny that you can track app installs on iOS without asking for tracking permission?

The only event we want to track is app installs from FB ads, I'm not sure it's worth it if we have to prompt the user for ATT permissions.

@ggirotto
Copy link

ggirotto commented May 5, 2022

In my case we haven't asked for ATT and the app installs are being tracked in iOS

@SRReddy411
Copy link

After thoroughly reading through everyone's suggestions and commentaries above, I've come up with the following configuration, and I confirm that events are displayed in Test Events and later in Overview.

AppDelegate.swift

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
      
        ApplicationDelegate.shared.application(application, didFinishLaunchingWithOptions: launchOptions)
        // Logging Behavior 
        Settings.enableLoggingBehavior(.appEvents)
        Settings.enableLoggingBehavior(.networkRequests)
        Settings.enableLoggingBehavior(.developerErrors)
        Settings.enableLoggingBehavior(.graphAPIDebugInfo)
        Settings.enableLoggingBehavior(.accessTokens)
        // Settings
        Settings.isAutoLogAppEventsEnabled = true
        Settings.setAdvertiserTrackingEnabled(true)
        Settings.isAdvertiserIDCollectionEnabled = true
        
        requestTracking()
        
        return true
    }func requestTracking(){
            if #available(iOS 14, *) {
                ATTrackingManager.requestTrackingAuthorization(completionHandler: { (status) in
                    switch status{
                    case .authorized:
                        Settings.setAdvertiserTrackingEnabled(true)
                        break
                    case .denied:
                        Settings.setAdvertiserTrackingEnabled(false)
                    default:
                        break
                    }
                })
            }
    }

Facebook related config in my plist file:

  <key>CFBundleURLTypes</key>
  <array>
    <dict>
      <key>CFBundleURLSchemes</key>
      <array>
        <string>fb[FACEBOOK_APP_ID]</string>
      </array>
    </dict>
  </array>
  <key>FacebookAdvertiserIDCollectionEnabled</key>
  <true/>
  <key>FacebookAppID</key>
  <string>[FACEBOOK_APP_ID]</string>
  <key>FacebookAutoLogAppEventsEnabled</key>
  <true/>
  <key>FacebookClientToken</key>
  <string>[FACEBOOK_CLIENT_TOKEN]</string>
  <key>FacebookDisplayName</key>
  <string>[FACEBOOK_DISPLAY_NAME]</string>
  <key>LSApplicationQueriesSchemes</key>
  <array>
    <string>fbapi</string>
    <string>fb-messenger-api</string>
    <string>fbauth2</string>
    <string>fbshareextension</string>
  </array>
  <key>NSUserTrackingUsageDescription</key>
  <string>Purpose text string here.</string>

Sample event example:

    func emitTestEvent(){
        let ev = "myTestEvent”
        let eventName: AppEvents.Name = AppEvents.Name(rawValue: ev)
        AppEvents.logEvent(eventName)
    }

I've tested on a real iPhone device (Software Version: 14.5.1). I ran a facebook app in background along with my app. Also backing up @julien-tamade's commentary that tracking should be enabled on both apps (facebook app and your app on which you're testing events). You can enable it manually from app's settings > Allow Tracking > On

You should double-check your app’s iOS platform configuration. Especially, if your facebook app's bundle ID matches your app.

Then in the advanced settings, check Advertising Accounts, it should be explained in these docs. All of my events started firing after I updated my Ad Account ID and Business Manager ID.

Test events test events

Overview overview tab

hi same thing i am follow but in ios 14.8.1 version i can't see my events

@i8ramin
Copy link

i8ramin commented May 22, 2022

I'm having trouble parsing through the FB docs and convos around this, can anyone confirm/deny that you can track app installs on iOS without asking for tracking permission?

The only event we want to track is app installs from FB ads, I'm not sure it's worth it if we have to prompt the user for ATT permissions.

exactly this. this is all we want to track as well. do we need to ask user for ATT permissions? if so, then auto tracking app lifecycle events is basically useless, since they fire before user has had a chance to respond to ATT prompt

@beaneymidnite
Copy link

Experiencing something similar. To date I have still not managed to use the "Test Events" tab successfully, despite trying everything on this thread.

Additionally, I cannot use the "Configure App Events for iOS 14.5 and later Ad Optimizations" in the dashboard. I send the notification which arrives, tap it, which opens my app, and I wait. Nothing happens in the dashboard. It hangs and then gives a "Can't connect" error, with some vague "turn it off and on again"-type instructions.

This needs attention IMO.

@erikmillergalow
Copy link

erikmillergalow commented May 26, 2022

I was eventually able to get app install events to fire without requesting ATT but it took a lot of trial/error, slogging through multiple versions of Meta docs, and github issues.

This might not be 100% comprehensive but I had to add this to AppDelegate.m in didFinishLaunchingWithOptions:

#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBAEMKit/FBAEMKit.h>

...

[[FBSDKApplicationDelegate sharedInstance] application:application
                         didFinishLaunchingWithOptions:launchOptions];
  [FBSDKApplicationDelegate.sharedInstance initializeSDK];
  [FBSDKSettings.sharedSettings setAdvertiserTrackingEnabled:YES];
  [FBSDKSettings.sharedSettings setAutoLogAppEventsEnabled:YES];

and this to openUrl:

  [FBAEMReporter configureWithNetworker:nil appID:@YourFBAppID];
  [FBAEMReporter enable];
  [FBAEMReporter handleURL:url];
  if ([[FBSDKApplicationDelegate sharedInstance] application:app openURL:url options:options]) {
    return YES;
  }

  if ([RCTLinkingManager application:app openURL:url options:options]) {
    return YES;
  }

This to Info.plist:

	<key>FacebookAppID</key>
	<string>YourFBAppID</string>
	<key>FacebookClientToken</key>
	<string><YourClientToken></string>
	<key>FacebookDisplayName</key>
	<string>YourFBAppName</string>
	<key>LSApplicationQueriesSchemes</key>
	<array>
		<string>fbapi</string>
		<string>fb-messenger-share-api</string>
	</array>

	<key>CFBundleURLTypes</key>
	<array>
		<dict>
			<key>CFBundleURLSchemes</key>
			<array>
				<string>fbYourFBAppID</string>
			</array>
		</dict>
                 ....
	</array>
	<key>CFBundleVersion</key>

The URL scheme is added in addition to any others you already have there. Something that tripped me up initially was leaving out the 'fb' at the beginning of the app ID in the URL scheme.

As others have mentioned, be sure to be signed in to the FB app (using the same account that you use for FB Business) and have it open in the background while first trying to view test events in the event manager.

@beaneymidnite
Copy link

@erikmillergalow - thanks for the response, I'm a bit concerned about this line though:

[FBSDKSettings.sharedSettings setAdvertiserTrackingEnabled:YES];

Is this not you telling Facebook that the user has consented to advertiser tracking (in other words, consenting to ATT)?

@erikmillergalow
Copy link

@beaneymidnite I could be wrong but my understanding is that ATT is only needed when tracking data that will identify the user, but that the FB app install event uses SKAdNetwork to link installs to ads anonymously.

See here under the first question in the FAQs: https://developer.apple.com/app-store/user-privacy-and-data-use/#attributing-app-installations

@beaneymidnite
Copy link

Ah okay, you're just doing SKAdNetwork. I'm also interested in Aggregated Event Measurement, which relies on other events being sent via the Facebook SDK.

Interestingly, your tips did get me one step further in the chain - I can now "set up" AEM in the dashboard under the "Configure App Events for iOS 14.5 and later Ad Optimizations" section, but it's now telling me there's no events in the last 90 days, and to check the overview tab (which has events coming in from the last 2 days, let alone 90!).

@ahtokca
Copy link

ahtokca commented Jun 10, 2022

it is unbelievably hard to make events appear at Events Manager. Spent 2 days with no success. I see events being sent via adb logcat and iPhone console however Event Manager/Test Events shows nothing.
All of that gives me no confidence that FB treats the app data seriously :(

@khushbujilka22
Copy link

@beaneymidnite could you please help me, how you done with Configure App Events for iOS 14.5 and later Ad Optimizations ?

I'm getting this error "We're unable to get a conversion from your app. There could be a problem with the integration of the Facebook SDK in your iOS mobile app.".

@imbimp
Copy link

imbimp commented Jun 24, 2022

Keeping this thread alive as spent months trying to get this to work. Tried everything above, still getting no events despite seeing them come out of the app in network requests.

@DonTharaka
Copy link

Facebook documentation on app events is very vague. It does not contain any information about ATTrackingManager which is necessary to track events. First follow all steps in the documentation. Below are the steps I have taken to successfully connect app events (iOS 15):

  1. Info.Plist
    Screen Shot 2022-08-11 at 10 44 47 am

  2. SceneDelegate

Screen Shot 2022-08-11 at 10 50 43 am

Screen Shot 2022-08-11 at 11 05 33 am

Screen Shot 2022-08-11 at 10 48 40 am

This will bring up the following pop up:

Screen Shot 2022-08-11 at 10 58 05 am

  1. In your viewcontroller:

Screen Shot 2022-08-11 at 10 52 39 am

@tharwi
Copy link

tharwi commented Aug 21, 2022

Hi @DonTharaka, Don't you want to set up like this in the Info.plist,

<key>FacebookAutoLogAppEventsEnabled</key>
<false/>
<key>FacebookAdvertiserIDCollectionEnabled</key>
<false/>
<key>NSUserTrackingUsageDescription</key>
<string>For app events</string>

Then after getting the user consent you have to mark them as true

@camboYY
Copy link

camboYY commented Sep 6, 2022

i have it worked only on simulator

@pballada
Copy link

In my case everything worked once I entered the bundle identifier in the Settings > Basic > iOS.
Not sure what is wrong with that field but the bundle id was not saving.

@sampath1994
Copy link

Any update on this?

@diegocuehdz
Copy link

Is there an update on this? Still happening as of February 13 2023

@calsmith
Copy link

Any update on this?

@rlomeli158
Copy link

Reopening. Still not fixed.

@poncemari
Copy link

poncemari commented Apr 19, 2024 via email

@Olegmaksimmenko
Copy link

Reopening. Still not fixed.

@811414114
Copy link

image@hannan07rohan

#- [ ] ~~````

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests