Open Ethan0007 opened 5 years ago
Hello! my problem is similar but instead of undefined is "TypeError: null is not an object"
I followed your footsteps and it didn't work either, I think it must really be the problem of RN 0.6 or do you have any other ideas about?
hello, can you please screenshot the error on you mobile screen i think we have different error cause this fix is for LoginWithPermission of undefined.
Hello @Ethan0007 ,
follow:
@fabriciosautner ,
did you add this configuration?
Hello @Ethan0007 !
I am not using RCTLinkingManager, my appdelegate configuration looks like this: (I am also using Google authentication)
- (BOOL)application:(UIApplication *)application openURL:(nonnull NSURL *)url options:(nonnull NSDictionary<NSString *,id> *)options {
return [[FBSDKApplicationDelegate sharedInstance] application:application openURL:url
sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey]
annotation:options[UIApplicationOpenURLOptionsAnnotationKey]] ||
[RNGoogleSignin application:application
openURL:url
sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey]
annotation:options[UIApplicationOpenURLOptionsAnnotationKey]];
}
and:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[[FBSDKApplicationDelegate sharedInstance] application:application
didFinishLaunchingWithOptions:launchOptions];
return YES;
}
Solved it!
I had tried to import the SDK manually via XCODE and with the new installation updates via automatic linking I forgot to remove.
Now everything is going well.
Thanks!
Follow this instruction: https://developers.facebook.com/docs/ios/getting-started/
if you got LoginWithPermission error download the latest version of the FBSDK: https://github.com/facebook/facebook-objc-sdk/releases
FBSDKCoreKit.zip FBSDKLoginKit.zip FBSDKShareKit.zip (Unzip and move it to user/Documents/FBSDK)
then do the following crucial parts. (Xcode)
clean and build your project.