From 41044df838ef3fefe600fb96b6560dc8a2b2a18a Mon Sep 17 00:00:00 2001 From: Xin Wu Date: Mon, 14 Aug 2023 14:19:13 -0700 Subject: [PATCH] add os version paramwhen fetching config Summary: as title, the param is optional Reviewed By: KylinChang Differential Revision: D48152979 fbshipit-source-id: eba091b769a9249c8c4b95f88c08f1af0b31ceb8 --- .../Internal/SKAdNetwork/FBSDKSKAdNetworkReporter.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/SKAdNetwork/FBSDKSKAdNetworkReporter.m b/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/SKAdNetwork/FBSDKSKAdNetworkReporter.m index f6927fa08..db9af138e 100644 --- a/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/SKAdNetwork/FBSDKSKAdNetworkReporter.m +++ b/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/SKAdNetwork/FBSDKSKAdNetworkReporter.m @@ -140,7 +140,11 @@ static char *const serialQueueLabel = "com.facebook.appevents.SKAdNetwork.FBSDKS return; } self.isRequestStarted = YES; - id request = [self.graphRequestFactory createGraphRequestWithGraphPath:[NSString stringWithFormat:@"%@/ios_skadnetwork_conversion_config", FBSDKSettings.sharedSettings.appID]]; + id request = [self.graphRequestFactory createGraphRequestWithGraphPath:[NSString stringWithFormat:@"%@/ios_skadnetwork_conversion_config", FBSDKSettings.sharedSettings.appID] + parameters:@{ + @"fields" : [NSString stringWithFormat:@"ios_skadnetwork_conversion_config.os_version(%@)", UIDevice.currentDevice.systemVersion] + }]; + [request startWithCompletion:^(id connection, id result, NSError *error) { [self dispatchOnQueue:self.serialQueue block:^{ if (error) {