function Pages()
{
FB.api(
'/me/accounts',
'GET',
{ fields: 'name,about' },
function(response) {
document.getElementById('showPages').innerHTML = response.name + ' ' + response.about ;
},{ scope: 'manage_pages' }
);
}
I'm using this function to get the name and about the pages administered by the user who has logged-in into my application.
I'm getting the output as "undefined".