Sarat Chandra E
Sep 2, 2018 · 1 min read

Hi Dan,

“/{user-id}/accounts” endpoints returns details of the user’s accounts related data. So make sure if the user has the accounts data you are requesting for like pages. And when you request the data you will need to pass the fields you are requesting for.
For Example:
To get User Accounts Data:

FB.api('/' + userID + '/accounts', {
fields: 'about,address,category_enum,category_list,city_id,coordinates,cover_photo,description,location,name,phone,picture,website,zip'
},
(response) => {
console.log(response);

if (response && !response.error) {
console.log(response);
}
else {
console.log('error');
}
},
);

Hope it helps.. :)