Skip to content

Instantly share code, notes, and snippets.

@davidpp
Created April 4, 2013 01:32
Show Gist options
  • Select an option

  • Save davidpp/5306985 to your computer and use it in GitHub Desktop.

Select an option

Save davidpp/5306985 to your computer and use it in GitHub Desktop.
Get FB picture
FB.login(function(response) {
if (response.authResponse) {
var access_token = FB.getAuthResponse()['accessToken'];
FB.api("/me", {fields: "id,name,picture.type(large)"}, function(response) {
console.log(response.id, response.name, response.picture);
});
}
}, {
scope: 'publish_stream,email'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment