iOS SDK additional field mapping

Hey guys! Use login via facebook. Wanna get favorite_teams field with array of team name. How i can do this?

Hi, Andrew. This issue is ready and will be present in the upcoming release this week.

To get favorite_teams field you’ll need to specify “user_likes” permission and fields mapping for “favorite_teams”. For example:
[backendless.userService easyLoginWithFacebookFieldsMapping:@{@“email”:@“email”, @“name”:@“name”, @“favorite_teams”:@“favorite_teams”} permissions:@[@“email”, @“user_likes”] response:^(id response) { //response - NSNumber with bool Yes NSLog(@“StartViewController -> login: (Facebook) result = %@”, response); } error:^(Fault *fault) { NSLog(@“StartViewController -> login: (FAULT) %@”, fault.detail); }];

Since “favorite_teams” is a multi-level field it will be saved in Backendless as a JSON String like this:
[{id=45484098297, name=Chicago White Sox}, {id=144917055340, name=LA Lakers}]

Thx! But will be great, if i got access through field mapping like @“favorite_teams.name” and SDK return back favorite_teams name in array. Also backendless not supported array field. Need save in string or text. When I tried get @“favorite_teams” field, SDK return me error with message @“favorite_teams not supported bla-bla-bla”, dont remember this message =). So, I user graph request, get necessary field and then updated this info to backend.

Hi, Andrew!

We’ve released the fix for this issue. Can you give it a try?