我正在使用Xcode 7.0,在iOS 9.0.2上测试并使用Facebook SDK 4.7.0.Code = 308"(null)" iOS 9中出现问题.我在项目中使用了objective-c代码.怎么解决这个?下面附上我的代码.
FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init];
[login logInWithReadPermissions:@[@"public_profile",@"email", @"user_friends"] fromViewController:self handler:^(FBSDKLoginManagerLoginResult *result, NSError *error){
if ([FBSDKAccessToken currentAccessToken]) { startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) {
if (!error) {
}
}];
}
}];
Run Code Online (Sandbox Code Playgroud)