Code Section ...
if ($facebook->getSession()) {
$uid = $facebook->getUser();
$fbme = $facebook->api('/me');
} else {
$params = array(
'fbconnect'=>0,
'canvas'=>1,
'req_perms'=>'publish_stream','email','user_location','user_birthday'
);
Must read ....
if ($facebook->getSession()) {
$uid = $facebook->getUser();
$fbme = $facebook->api('/me');
} else {
$params = array(
'fbconnect'=>0,
'canvas'=>1,
'req_perms'=>'publish_stream,email,user_location,user_birthday'
);
(change the note to the string "req_perms"). Birthday can be read as
$birthday=$fbme['birthday'];
, , $fbme ['birthday'] NULL.
, , , , .
! , .
Facebook API - !