I suppose its either getProperty(\"sex\")
or (\"gender\")
or user.asMap().get(\"sex\")
or (\"gender\")
?
also, what kind
You can get the gender of user from the "user_about_me" permission and get the gender from the response json by user.getProperty("gender") .toString().
Request.executeMeRequestAsync (session, new Request.GraphUserCallback() {
@Override
public void onCompleted(GraphUser user, Response response) {
String fbId = user.getId();
String fbAccessToken = fbAccessToken;
String fbName = user.getName();
String gender = user.asMap().get("gender").toString();
Log.i("FB", gender);
}
});
no seperate permission for this this values you can get gender like this And see THIS
private String UserInfoDisplay(GraphUser user) {
StringBuilder userInfo = new StringBuilder("");
String Name = user.getName();
String Id = user.getId();
String lastname = user.getLastName();
String firstname = user.getFirstName();
String getUsername = user.getUsername();
String get_gender = (String) user.getProperty("gender");
String image_url = "http://graph.facebook.com/"+user.getId()+"/picture?type=square";
Log.i("User information == >", Name +Id + lastname+
firstname + image_url + get_gender + getUsername + "usermail"+User_mail );
text.setText(Name + " mail = " +User_mail);
return userInfo.toString();
}