loginWithFacebookSDK:fieldsMapping:fieldsMap: failing with uncaught exception

Dear Backendless,

There is a fatal bug in the latest SDK (3.0.1) causing a fatal error when login with Facebook using the loginWithFacebookSDK:fieldsMapping:fieldsMap: method.

Specifically, the bug is in UserService.m line 777:

-(void)loginWithFacebookSDK:(FBSDKAccessToken *)accessToken fieldsMapping:(NSDictionary *)fieldsMapping responder:(id <IResponder>)responder {
    [self loginWithFacebookSocialUserId:[accessToken valueForKey:@"userID"] accessToken:[accessToken valueForKey:@"tokenString"] expirationDate:[accessToken valueForKey:@"expirationDate"] permissions:[NSSet setWithArray:[accessToken valueForKey:@"permissions"]] fieldsMapping:fieldsMapping responder:responder];
}

It should read:

-(void)loginWithFacebookSDK:(FBSDKAccessToken *)accessToken fieldsMapping:(NSDictionary *)fieldsMapping responder:(id <IResponder>)responder {
    [self loginWithFacebookSocialUserId:[accessToken valueForKey:@"userID"] accessToken:[accessToken valueForKey:@"tokenString"] expirationDate:[accessToken valueForKey:@"expirationDate"] permissions:[accessToken valueForKey:@"permissions"] fieldsMapping:fieldsMapping responder:responder];
}

Thanks!

Hi Emmanuel,

Thank you for reporting this. We will investigate and make the appropriate changes.

Regards,
Mark

Thanks a lot, Emmanuel! This issue is fixed.

You can download the updated library from:

Regards,
Mark

Great news! I use cocoapods actually, will you update that too?

Hi Emmanuel!

Cocoapods will be updated on this week. We will notify you about these changes.
Regards,
Kate.

Hi Emmanuel,

The Backendless SDK 3.0.5 version has been deployed to Cocoapods, it fixes this issue.
Regards,
Slava

Hi Slava,

Yes, it’s now working flawlessly.

Thanks!