Skip to content

Commit

Permalink
Removed fetching app configuration data before calling FB.Init
Browse files Browse the repository at this point in the history
Summary: Removed fetching app configuration data before calling FB.Init on iOS platform.

Reviewed By: SergioGuerreroFB

Differential Revision: D45648899

fbshipit-source-id: d9defc432e18379346dc47d6ffa3e77784bd8cca
  • Loading branch information
JordiFB authored and facebook-github-bot committed Jun 15, 2023
1 parent 6fc8595 commit 7ba25ae
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -62,8 +62,7 @@ + (void)load

- (void)didFinishLaunching:(NSNotification *)notification
{
[[FBSDKApplicationDelegate sharedInstance] application:[UIApplication sharedApplication]
didFinishLaunchingWithOptions:notification.userInfo];

}

- (void)didBecomeActive:(NSNotification *)notification
Expand Down Expand Up @@ -395,6 +394,9 @@ 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]];
Expand Down

0 comments on commit 7ba25ae

Please sign in to comment.