facebook-ios-sdk
facebook-ios-sdk copied to clipboard
iOS 16.0 Crashes - `FBSDKPaymentProductRequestor resolveProducts`
Checklist before submitting a bug report
- [ ] I've updated to the latest released version of the SDK
- [X] I've searched for existing GitHub issues
- [X] I've looked for existing answers on Stack Overflow, the Facebook Developer Community Forum and the Facebook Developers Group
- [X] I've read the Code of Conduct
- [X] This issue is not security related and can safely be disclosed publicly on GitHub
Xcode version
13.2
Facebook iOS SDK version
9.3.0
Dependency Manager
CocoaPods
SDK Framework
Login
Goals
bug fix. resolve all the crashes that appears in iOS 16.0
Expected results
should be no crash in 16.0 device
Actual results
There are multiple crashes on iOS 16.0 devices with following crash stacks:
Date/Time: 2022-09-28 03:08:00 +0000
OS Version: iPhone OS 16.0 (20A362)
Report Version: 104
Exception Type: SIGABRT
Exception Codes: #0 at 0x20075dbc4
Crashed Thread: 0
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x000000020075dbc4 0x20074f000 + 60356
1 libsystem_kernel.dylib 0x000000020077fbac 0x20074f000 + 199596
2 libobjc.A.dylib 0x00000001bd44f85c 0x1bd41c000 + 211036
3 libobjc.A.dylib 0x00000001bd44f7e8 0x1bd41c000 + 210920
4 libobjc.A.dylib 0x00000001bd43bf10 0x1bd41c000 + 130832
5 libobjc.A.dylib 0x00000001bd4261a4 0x1bd41c000 + 41380
6 libobjc.A.dylib 0x00000001bd440450 0x1bd41c000 + 148560
7 libobjc.A.dylib 0x00000001bd423c78 0x1bd41c000 + 31864
8 libobjc.A.dylib 0x00000001bd41e0c4 0x1bd41c000 + 8388
9 libobjc.A.dylib 0x00000001bd431fcc 0x1bd41c000 + 90060
[FBSDKPaymentProductRequestor resolveProducts] + 187724860 (FBSDKPaymentObserver.m:210)
[FBSDKPaymentObserver handleTransaction:] + 187723640 (FBSDKPaymentObserver.m:139)
Steps to reproduce
This is reproduced online with small possibilities, our team has no clue on how to effectively reproduce the crash.
Code samples & details
n.a.
Hi please let me know if there is any feedback on this issue.
HI @SamuelZhaoY I am facing same issue, did you find any solution ?
I am seeing this crash as well -- second most common crash happening in my app. All I do is initialize the FB SDK so about 99% sure this is an issue with the SDK. I also see it only on iOS 16
HI @SamuelZhaoY I am facing same issue, did you find any solution ?
Nope, currently there is no clue, waiting the feedback from FB SDK team.
We're also facing this issue. The fbsdk version we have is 9.2.0
. The FBSDKPaymentObserver.m
changed a lot in the following versions. It has been refactored to swift in 15.0.0
. Maybe update fbsdk version can solve this issue.
also seeing a lot of crashes on 16.0 to 16.1 with FBSDKPaymentObserver
Facing the same issue ios 16.0.3 and fbsdk 9.3.0 Please let us know if you found a work around or something. Cheers
Same here!
Getting what could be considered an illegal amount of crashes!!!!
arrest mark zuckerbergh
Is this happening for anyone on a version higher than 9.x? Especially more recent versions.
i'm on v9.3.0
Latest version though SPM

@fishandphil Do you have the ability to reproduce this or is this just a crash report you've received from the wild?
Hi, I am also having the same issue. Facebook login works fine but somehow app crashed unexpectedly.
I have disabled the Login with Facebook functionality for now. But I would really like some suggestions to keep my 'Login with Facebook' feature without app crashing.
I have disabled the Login with Facebook functionality for now. But I would really like some suggestions to keep my 'Login with Facebook' feature without app crashing.
It works for iOS below 16
I have received some crash reports. so I don't want to upset new users.
@khuramdogar do you use in-app subscriptions? I've noticed that it started right after I bought a subscription with a test user, crash happens immediately on the first screen
We use SPM, FB SDK 9.0.0, iOS 16.1, Xcode 14.0.1
@khuramdogar do you use in-app subscriptions? I've noticed that it started right after I bought a subscription with a test user, crash happens immediately on the first screen
We use SPM, FB SDK 9.0.0, iOS 16.1, Xcode 14.0.1
Yes I am using use IN App Purchase as well in my app.
I recently got the crash myself while debugging within Xcode. Maybe this can help:

This is launch time. It was a cold install and I had enabled the Network Link Conditioner to do some bad networking tests. I don't know if this is related or not. First time I get it myself.
In our case, we use Facebook for login/sharing. But we have no interest in Facebook looking at the transactions that happens within our product. Is there a way to disable this feature which would maybe provide this bug?
We have been facing the same issue on certain devices that have upgraded to iOS 16.0.
We have only encountered this on one or two devices within the team, but we are no longer able to re-create it after the following steps:
- Open the Facebook Developer Portal
- Navigate to App Events -> Settings
- Disable all settings in this section ("Collect the Apple Advertising Identifier (IDFA) with App Events", "Log in-app events automatically", "Log in-app events automatically")
Don't have any data yet on whether this has resolved the issue for live users outside of our team, but wanted to share this in case it proves useful for anyone else.
Need to update to 16.1.2Sent from my iPhoneOn Dec 5, 2022, at 2:23 AM, James N @.***> wrote: We have been facing the same issue on certain devices that have upgraded to iOS 16.0. We have only encountered this on one or two devices within the team, but we are no longer able to re-create it after the following steps:
Open the Facebook Developer Portal Navigate to App Events -> Settings Disable all settings in this section ("Collect the Apple Advertising Identifier (IDFA) with App Events", "Log in-app events automatically", "Log in-app events automatically")
Don't have any data yet on whether this has resolved the issue for live users outside of our team, but wanted to share this in case it proves useful for anyone else. We have also run builds with the Facebook SDK fully removed, and have not encountered any immediate crashes in those builds.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>
Any updates on this? We are facing this issue and disabling events is not an option, since we advertise on Facebook and need to see campaign effectiveness.
It would be great to hear from someone from the FB team. This crash is directly impacting purchasing users.
@khuramdogar do you use in-app subscriptions? I've noticed that it started right after I bought a subscription with a test user, crash happens immediately on the first screen
We use SPM, FB SDK 9.0.0, iOS 16.1, Xcode 14.0.1
@bohdansasko Does it happen on every app launch after a purchase?
@The0racle yep, it does every time. a bit later I'll try out https://github.com/facebook/facebook-ios-sdk/issues/2119#issuecomment-1337093742, maybe it will help us as well
Hey guys! I had the same problem as I am using Facebook login and Auto-Renewable Subscriptions In-App purchases in my app.
The way I fixed this bug is by adding two keys to the info.plist file:
- FacebookAdvertiserIDCollectionEnabled: Boolean NO
- FacebookAutoLogAppEventsEnabled: Boolean NO
After that, the app was not crashing anymore. I hope it works for you as well!
Hey guys! I had the same problem as I am using Facebook login and Auto-Renewable Subscriptions In-App purchases in my app.
The way I fixed this bug is by adding two keys to the info.plist file:
- FacebookAdvertiserIDCollectionEnabled: Boolean NO
- FacebookAutoLogAppEventsEnabled: Boolean NO
After that, the app was not crashing anymore. I hope it works for you as well!
This should be a temporary solution. When AutoLogAppEvents is enabled, the FB SDK will add Payment observers, causing this crash. Don't forget to check that your code contains [FBSDKSettings setAutoLogAppEventsEnabled:YES]
;
Key code:
- (void)fetchServerConfiguration:(FBSDKCodeBlock)callback
{
// ...
if ([g_settings isAutoLogAppEventsEnabled] && self->_serverConfiguration.implicitPurchaseLoggingEnabled) {
[g_paymentObserver startObservingTransactions]; // here
}
// ...
}
Hey guys! I had the same problem as I am using Facebook login and Auto-Renewable Subscriptions In-App purchases in my app. The way I fixed this bug is by adding two keys to the info.plist file:
- FacebookAdvertiserIDCollectionEnabled: Boolean NO
- FacebookAutoLogAppEventsEnabled: Boolean NO
After that, the app was not crashing anymore. I hope it works for you as well!
This should be a temporary solution. When AutoLogAppEvents is enabled, the FB SDK will add Payment observers, causing this crash. Don't forget to check that your code contains
[FBSDKSettings setAutoLogAppEventsEnabled:YES]
;Key code:
- (void)fetchServerConfiguration:(FBSDKCodeBlock)callback { // ... if ([g_settings isAutoLogAppEventsEnabled] && self->_serverConfiguration.implicitPurchaseLoggingEnabled) { [g_paymentObserver startObservingTransactions]; // here } // ... }
@ccnyou Where is this code supposed to be added?