function getUser()
{
FB.api(\'/me\', function(response) {
console.log(\'Response is \'+response);
alert(\'Your name is \' + response.first_name);
i think you have to use FB Graph api. and if you want more information then you have to use like this
https://graph.facebook.com/579156356
https://graph.facebook.com/btaylor?access_token=AAAAAAITEghMBAHTRFEKjKcvFe1W2NJTu1Gsy20cNWEe0Dh98KoOhJEInZB1kXrMprNUaN6nq8FZA7YMZBvNVLwuz6pglh1SIBbZCnEECOAZDZD
i am useing like this.
function(evt){
console.log(evt.target.responseText);
var FB_obj = JSON.parse(evt.target.responseText);
console.log("fb id >>"+FB_obj.id);
console.log("fb name >>"+FB_obj.name);
}