When you use the graph API it returns a JSON object with the information you requested in your permissions. You are able to get the name using object.getString("name");
because name is one of the attributes in the graph response JSON, like this:
{
"id": "12345678",
"birthday": "1/1/1950",
"first_name": "Chris",
"gender": "male",
"last_name": "Colm",
"link": "http://www.facebook.com/12345678",
"location": {
"id": "110843418940484",
"name": "Seattle, Washington"
},
"locale": "en_US",
"name": "Chris Colm",
"timezone": -8,
"updated_time": "2010-01-01T16:40:43+0000",
"verified": true
}
This example was taken from the here, where it goes over the graph response.
Basically, you're going to have to traverse the JSON to get the information you want. A lot of people recommend org.json to do this in java, although I think you can probably do it just with built in Android tools.