Skip to content

Commit 7ba25ae

Browse files
JordiFBfacebook-github-bot
authored andcommitted
Removed fetching app configuration data before calling FB.Init
Summary: Removed fetching app configuration data before calling FB.Init on iOS platform. Reviewed By: SergioGuerreroFB Differential Revision: D45648899 fbshipit-source-id: d9defc432e18379346dc47d6ffa3e77784bd8cca
1 parent 6fc8595 commit 7ba25ae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

UnitySDK/Assets/FacebookSDK/SDK/Editor/iOS/FBUnityInterface.mm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ + (void)load
6262

6363
- (void)didFinishLaunching:(NSNotification *)notification
6464
{
65-
[[FBSDKApplicationDelegate sharedInstance] application:[UIApplication sharedApplication]
66-
didFinishLaunchingWithOptions:notification.userInfo];
65+
6766
}
6867

6968
- (void)didBecomeActive:(NSNotification *)notification
@@ -395,6 +394,9 @@ void IOSFBSendViewHierarchy(const char *_tree )
395394

396395
void IOSFBInit(const char *_appId, bool _frictionlessRequests, const char *_urlSuffix, const char *_userAgentSuffix)
397396
{
397+
// Initialize SDK first
398+
[[FBSDKApplicationDelegate sharedInstance] initializeSDK];
399+
398400
// Set the user agent before calling init to ensure that calls made during
399401
// init use the user agent suffix.
400402
[FBSDKSettings.sharedSettings setUserAgentSuffix:[FBUnityUtility stringFromCString:_userAgentSuffix]];

0 commit comments

Comments
 (0)