我在使用官方的react软件包进行facebook登录时遇到了问题,它在android中运行良好,但在登录完成后在IOS中工作,或者取消将其重定向到空白页面,而不是返回我的应用程序。
我所做的:
任何帮助都将不胜感激。
发布于 2017-04-10 17:59:19
您需要在ios项目中修改AppDelegate.m文件
此问题表示AppDelegate.m文件中的代码没有正确设置。确认您的代码与此示例类似:
AppDelegate.m
#import <FBSDKCoreKit/FBSDKCoreKit.h>
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[[FBSDKApplicationDelegate sharedInstance] application:application
didFinishLaunchingWithOptions:launchOptions];
// Add any custom logic here.
return YES;
}
- (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication
annotation:(id)annotation {
BOOL handled = [[FBSDKApplicationDelegate sharedInstance]
application:application
openURL:url
sourceApplication:sourceApplication
annotation:annotation
];
// Add any custom logic here.
return handled;
}https://stackoverflow.com/questions/42336718
复制相似问题