FacebookJSSDK的FB.api(‘/me’)方法不返回我在GraphAPI v2.4+
{ name: "Juan Fuentes", id: "123456" }
function facebookLogin() { FB.login(function(response) { var token = response.authResponse.accessToken; var uid = response.authResponse.userID; if (response.authResponse) { FB.api('/me', 'get', { access_token: token }, function(response) { console.log(response); }); FB.api('/'+uid, 'get', { access_token: token }, function(response) { console.log(response); }); } }, { scope: 'public_profile' } );}
<a id="fb-login" href="#" onclick="facebookLogin()"></a>