Skip to content

Commit 8fe8819

Browse files
authored
Fix Facebook Login in test app. (#8621)
1 parent cfcb1eb commit 8fe8819

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

FirebaseAuth/Tests/Sample/Sample/ApplicationDelegate.m

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
#import <FirebaseCore/FIRApp.h>
2020
#import <FirebaseCore/FIRConfiguration.h>
21+
#import <FBSDKCoreKit/FBSDKCoreKit.h>
2122

2223
#import "AuthProviders.h"
2324
#import <FirebaseAuth/FirebaseAuth.h>
@@ -46,6 +47,9 @@ - (BOOL)application:(UIApplication *)application
4647
// Configure the default Firebase application:
4748
[FIRApp configure];
4849

50+
[[FBSDKApplicationDelegate sharedInstance] application:application
51+
didFinishLaunchingWithOptions:launchOptions];
52+
4953
// Load and present the UI:
5054
UIWindow *window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
5155
_sampleAppMainViewController =
@@ -63,6 +67,10 @@ - (BOOL)application:(UIApplication *)application
6367
- (BOOL)application:(nonnull UIApplication *)application
6468
openURL:(nonnull NSURL *)url
6569
options:(nonnull NSDictionary<NSString *, id> *)options {
70+
[[FBSDKApplicationDelegate sharedInstance] application:application
71+
openURL:url
72+
options:options];
73+
6674
return [self application:application
6775
openURL:url
6876
sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey]

0 commit comments

Comments
 (0)