With Graph API for Android I can get the current user stuff with "/me" calls.
Until here, everything is fine, but I can't find a way to grab the user real ID (numbers)? How can to do that?
/me
returns a JSON object with an id field (and others). You can parse this JSON object like this:
JSONObject json = Util.parseJson(facebook.request("me", params));
String userId = json.getString("id");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With