Retrieving Facebook User Details with PHP SDK -
i have application uses scope=email, publish_actions, publish_stream authorizes user email, among other details.
problem cannot retrieve in way, no matter code use... have been stuck on over 4 hours. php sdk 3.2.2 version , yet examples comes not work. have in mind apps made last year (april 2012) not work either. has changed in graph api use?
this example.php not work either
// user id $user = $facebook->getuser(); // may or may not have data based on whether user logged in. // // if have $user id here, means know user logged // facebook, don't know if access token valid. access // token invalid if user logged out of facebook. if ($user) { try { // proceed knowing have logged in user who's authenticated. $user_profile = $facebook->api('/me');
$user_profile['name']
, $user_profile['email']
not return anything...
Comments
Post a Comment