If i manage to get a response.session object, can i use it to get the current logged in users username and profile image?
Thanks
FB.api('/me', function(response) {
alert("Name: "+ response.name + "\nFirst name: "+ response.first_name + "ID: "+response.id);
var img_link = "http://graph.facebook.com/"+response.id+"/picture"
});
More info here:
http://developers.facebook.com/docs/reference/javascript/FB.api/
Additionnaly, you can get more personnal informations about connected user :
FB.api('/me', function(response) {
console.log(response);
});
Hope that helps
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