facebookarchive / react-native-fbsdk

A React Native wrapper around the Facebook SDKs for Android and iOS. Provides access to Facebook login, sharing, graph requests, app events etc.
https://developers.facebook.com/docs/react-native
Other
2.99k stars 906 forks source link

iOS 13 always return isCancelled true while logging through Facebook app #760

Open tushargoyalofficial opened 4 years ago

tushargoyalofficial commented 4 years ago

Yes, the issue persists. RN FBSDK v2.0.0 (latest) RN v0.61.5 issue: in iOS, open app or authenticate, coming back to our app, isCancelled: true, always. This is working fine in Android and iOS simulator (which do not have FB app).

// appdelegate.m

`- (BOOL)application:(UIApplication )application didFinishLaunchingWithOptions:(NSDictionary )launchOptions {

[[FBSDKApplicationDelegate sharedInstance] application:application didFinishLaunchingWithOptions:launchOptions]; // other logics

return YES;

pragma mark Linking delegate methods

(BOOL)application:(UIApplication )app openURL:(NSURL )url sourceApplication:(NSString )sourceApplication annotation:(id)annotation options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> )options {

if ([[FBSDKApplicationDelegate sharedInstance] application:app openURL:url options:options]) { return YES; }

BOOL handled = [[FBSDKApplicationDelegate sharedInstance] application:app openURL:url sourceApplication:sourceApplication annotation:annotation ];

if (handled) { return handled; }

// other logics

`

mlostekk commented 4 years ago

Did you find a solution?

phuoctamm commented 4 years ago

same issue