Hello,
I am doing the social login with Facebook .Everything work fine. I check the BackendlessUser after success call to Backendless.UserService.loginWithFacebookSdk
and I find all the fields in there.
However when I go to the dashboard, I see none of the mapping. I only see name, email, passsword but I don’t see first_name, last_name …etc
I even tried creating the column last_name manually and it says “it already exists” although the column is not visible in the dashboard.
Can you please let me know if I am doing something wrong or if it is a bug
Here is the code
Map<String, String> facebookFieldMappings = new HashMap<String, String>();
facebookFieldMappings.put( “first_name”, “first_name” );
facebookFieldMappings.put( “last_name”, “last_name” );
facebookFieldMappings.put( “birthday”, “birthday” );
facebookFieldMappings.put( “email”, “email” );
facebookFieldMappings.put( “gender”, “gender” );
Backendless.UserService.loginWithFacebookSdk(fbAccessToken, facebookFieldMappings,new AsyncCallback<BackendlessUser>() {
@Override
public void handleResponse(BackendlessUser backendlessUser) {
isLoggedInBackendless = true;
}@Override
public void handleFault(BackendlessFault fault) {
isLoggedInBackendless = false;
}
}, true);