Tôi đang cố triển khai đăng nhập bằng chức năng Facebook, Nhưng tôi nhận được lỗi sau.(com.facebook.sdk.login lỗi 304.) Lỗi với FBSDK 4.2
Login Failed with error: The operation couldn’t be completed. (com.facebook.sdk.login error 304.)
Đây là Mã của tôi
- (void)loginWithFacebook {
NSString *const read_actions = @"email";
[[[FBSDKLoginManager alloc] init]
logInWithReadPermissions:@[read_actions] handler:^(FBSDKLoginManagerLoginResult *result, NSError *error)
{
if (error) {
NSLog(@"Login Failed with error: %@", error.localizedDescription);
}
else if (result.isCancelled)
{
NSLog(@"Login Failed due to Cancel");
}
else
{
if ([result.grantedPermissions containsObject:read_actions]) {
NSLog(@"Permission granted");
}
}
}];
}
Đó là mã công trình tốt tốt cho tôi với phiên bản mới nhất (4.3 kể từ bây giờ) của SDK, nó có lỗi với cùng một thông báo sau khi cập nhật lên phiên bản mới nhất không? Bạn có đang chạy trên thiết bị thực tế hoặc trong trình mô phỏng không? –