Login without facebook account with FBSDKLoginBehaviorWeb a blank page will appear

I am trying to login to Facebook webview

in my application ( FBSDKLoginBehaviorWeb

)

FBSDKLoginBehaviorWeb

But if I try a "No Facebook" account (for example email: notregistered@noemail.com

password: 123456

), it appears blank page

. I expect it to return some error

.

Blank Page

Here is my code.

FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init];
login.loginBehavior = FBSDKLoginBehaviorWeb;

dispatch_async(dispatch_get_main_queue(), ^{
   [login logInWithReadPermissions:@[@"public_profile"] 
                           handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) {
   }}];

      

It is important to say that it is handler

not executed and it is impossible to access the result and error

.

What should I do to avoid blank page

or get some API error

?

+3


source to share





All Articles