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

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -