After authenticating the user and now the user is signed in I am trying to retrieve the userType from the graph client. I know that field is not a default value so I used select however it still does not work. I am making an android app on android studio using java. Here is the piece of code that I used.
graphClient.me()
.buildRequest().select("displayName,userType")
.get(new ICallback<User>(){
@Override
public void success(User user) {
//displayGraphResult(user.getRawObject());
logTextView.setText(user.userType);
}
@Override
public void failure(ClientException ex) {
displayError(ex);
}
});