Facebook Graph API, how to get users email?

icanhaztig

New Member
I'm using the Graph API, but I can't figure out how to get a logged-in users email address.The intro to Graph states "The Graph API can provide access to all of the basic account registration data you would typically request in a sign-up form for your site, including name, email address, profile picture, and birthday"All well and good, but how do I access that info?This is what I have so far:\[code\]$json = $facebook->api('/me');$first = $json['first_name']; // gets first name$last = $json['last_name'];\[/code\]
 
Back
Top