diff --git a/UnitySDK/Assets/FacebookSDK/SDK/Editor/iOS/FBUnityInterface.mm b/UnitySDK/Assets/FacebookSDK/SDK/Editor/iOS/FBUnityInterface.mm index 688460f1..ccdf19ff 100644 --- a/UnitySDK/Assets/FacebookSDK/SDK/Editor/iOS/FBUnityInterface.mm +++ b/UnitySDK/Assets/FacebookSDK/SDK/Editor/iOS/FBUnityInterface.mm @@ -62,7 +62,8 @@ + (void)load - (void)didFinishLaunching:(NSNotification *)notification { - + [[FBSDKApplicationDelegate sharedInstance] application:[UIApplication sharedApplication] + didFinishLaunchingWithOptions:notification.userInfo]; } - (void)didBecomeActive:(NSNotification *)notification @@ -394,9 +395,6 @@ void IOSFBSendViewHierarchy(const char *_tree ) void IOSFBInit(const char *_appId, bool _frictionlessRequests, const char *_urlSuffix, const char *_userAgentSuffix) { - // Initialize SDK first - [[FBSDKApplicationDelegate sharedInstance] initializeSDK]; - // Set the user agent before calling init to ensure that calls made during // init use the user agent suffix. [FBSDKSettings.sharedSettings setUserAgentSuffix:[FBUnityUtility stringFromCString:_userAgentSuffix]];