loginWithFacebookSDK:fieldsMapping: does not retrieve autoloaded relations

Dear Backendless,

I’m using the loginWithFacebookSDK:fieldsMapping: to login with Facebook.
The API returns a user without the autoloaded relations. I have to retrieve them manually by calling load:relations:.

Regards

Hi Emmanuel!
Thank you for this information.

We added this issue to our roadmap.
Regards,
Kate.

Great, thanks!

Hi Emmanuel!

Could you try it again?
Regards,
Kate.

Hi Kate,

I have a new problem now that if the user exists I get the following message:

'3033' [Unable to register user. User already exists.] <Unable to register user. User already exists.>

My code is as follows:

    NSDictionary *fieldsMapping = @{
                                    @"id" : @"facebookId",
                                    @"name" : @"name",
                                    @"birthday": @"birthday",
                                    @"first_name": @"first_name",
                                    @"last_name" : @"last_name",
                                    @"gender": @"gender",
                                    @"email": @"email"};
    [backendless.userService
     loginWithFacebookSDK:accessToken
     fieldsMapping:fieldsMapping
     response:^(BLMUser *user) {
     	// Do something
     }
     error:^(Fault *fault) {
         NSLog(@"Login with Facebook failed: %@", fault);
         NSError *error = [NSError errorWithDomain:BLMERROR_DOMAIN code:[fault.faultCode integerValue] userInfo:@{NSLocalizedDescriptionKey: fault.message}];
         [self notifyLogin:nil error:error];
     }];

Regards

Do you use latest IOS SDK?
This error appears after enabling autoload for relation in users table?

Hi Kate,

I’m using the latest SDK for iOS (3.0.5).
Autoload was already enabled prior to the change.

Thanks

Hi Kate,

I’ve disabled autoload on relations on my Users table but the problem persists.

Regards

Your appId starts with 25C2E37D… ?

It’s the one starting with 97A252C9

Hi Emmanuel,

Pls, send your appId & secretKey: slavav@themidnightcoders.com

Slava

Hi Emmanuel.
My user registered and logged in without errors with loginWithFacebookSDK in your app.
This error appears with both your facebook users in this app?