Sep 2, 2018 · 1 min read
And to get USER DETAILS
FB.api('/' + userID + '/', {
fields: 'id,name,first_name,middle_name,last_name,' +
'email,birthday,about,address,gender,hometown,link,location,education,work,relationship_status,picture,' +
'religion,interested_in,languages,meeting_for,payment_pricepoints,political,significant_other,sports,website,' +
'books,events,family,favorite_athletes,favorite_teams,inspirational_people,' +
'friends,friendlists,games,likes,groups,ad_studies'
},
function(response) {
console.log(response);
if (response && !response.error) {
console.log(response);
}
}, function(err) {
console.log('error');
}
);