Created
April 4, 2013 01:32
-
-
Save davidpp/5306985 to your computer and use it in GitHub Desktop.
Get FB picture
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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