i have asked the extended permission for user's primary email address. but, i can't find user's email from decoded fb signed_request. how to get user's email from new php sdk after user grants the extended permission for email address?
You should use something like:
$facebook->api('/me?fields=email');
And the result:
Array
(
[email] => XXXXXXXXXXXXXXX
[id] => 579187142
)
IMPORTANT NOTE: Facebook gives the user the choice NOT to give your application the real email! so you have to be careful about this!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With