I've been looking for the documentation for what parameters we can use when calling this and what the response object would consist of. They give us this simple example
FB.api('/me', function(response) {
console.log('Successful login for: ' + response.name);
document.getElementById('status').innerHTML =
'Thanks for logging in, ' + response.name + '!';
});
for the facebook login setup but what if I wanted the users profile picture, etc....
'/me' is just a shorthand for the userid of the logged in user. So it has the same fields as the User node, the docs for which are here:
https://developers.facebook.com/docs/graph-api/reference/user/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With