Facebook
Here we will make a request to the Meta Graph API to get a users profile data.
Request
FB.api(
'/me',
'GET',
{"fields":"id,name,email,location,age_range,birthday,hometown,albums,likes,gender,friends,posts"},
function(response) {
// Insert your code here
});
Response