Get user ID and email from Facebook with JavaScript SDK

If you authenticated a user with the Facebook JavaScript SDK, then you can do the following to get the ID, name and email address of a user:

FB.api('/me',function(response){alert(response.id);});
FB.api('/me',function(response){alert(response.name);});
FB.api('/me',function(response){alert(response.email);});