Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fb.api('/me where can I find list of available parameters

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....

like image 556
Rockstar5645 Avatar asked Jan 07 '23 23:01

Rockstar5645


1 Answers

'/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/

like image 123
Leeondamiky Avatar answered Jan 10 '23 23:01

Leeondamiky