Authorization error through native facebook application

Authorization error through native facebook application

When you try to log in using the Facebook application, SDK returns error:

When you try to log in using the Facebook application, SDK returns error:

Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={_kCFStreamErrorCodeKey=53, _kCFStreamErrorDomainKey=1}

The error is not reproduced in the case of authorization through Safari, only through the application and not every time.

My code:

- (IBAction)loginFacebook:(UIButton *)sender
{
     FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init];
     [login logOut];
     [login
     logInWithReadPermissions: @[@"public_profile",@"email"]
     fromViewController:self
     handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) {
        if (error) {
           [self showError:error];
        } else if (result.isCancelled) {
           NSLog(@"Cancelled");
        } else {
           [LoadingView startLoading:@"" inView:[[UIApplication sharedApplication].delegate window] isProgress:NO showWithCheckmark:NO];
           [[BackendService sharedBackendService] fbLoginWithAccessToken:result.token.tokenString successBlock:^() {
                [_errorView removeFromSuperview];
                 _errorView = nil;
                 STOP_LOADING
                [self showMainVC];
             } errorBlock:^(NSError *error) {
                 STOP_LOADING
             [self showError:error];
         }];
      }
   }];
}


Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

C/C++ vs. Rust: A developer’s perspective

In this post, you'll see the difference between Rust and C/C++ in a developer’s perspective

Variable Introduction in C#[Bangla]

LIKE | COMMENT | SHARE | SUBSCRIBE A variable is nothing but a name given to a storage area that our programs can manipulate. Each variable in C# has a speci...