I'm building an app using the latest version of Facebook Android SDK, using their own tutorial, with the Facebook Login Button. After login I perform a call to the GraphAPI (as shown here https://developers.facebook.com/docs/graph-api/reference/user) but, the only thing I receive is the account name and id. I also tried to get the user profile information using this code:
GraphRequest request = GraphRequest.newMeRequest(AccessToken.getCurrentAccessToken(),
new GraphRequest.GraphJSONObjectCallback() {
@Override
public void onCompleted(JSONObject object, GraphResponse response) {
// My code
}
});
request.executeAsync();
But the answer is always the same: only the user name and id. Am I missing something? I ask for public_profile and email permissions so, I'd like to see information as email, hometown and other things, just like the Graph object itself, according with the API. Has anyone seen something like this?
Thanks in advance