facebook graph api - Really basic questions about the PHP SDK -



facebook graph api - Really basic questions about the PHP SDK -

suppose had logged in user through facebook php sdk, , had permission fetch bio (user_about_me) , education (user_education_history). if wanted fetch data, how go doing that? know if wanna user interests, run

$facebook->api("/me/interests");

however, not work bio , education history. using php sdk, how can data? thanks.

edit: here's image of app permissions, code used request permissions.

$login_url = $facebook->getloginurl(array( 'scope' => 'email, publish_stream, user_about_me, user_interests, user_education_history'));

you can't $facebook->api("/me/about") ; or $facebook->api("/me/bio") ; throw fatal error:

fatal error: uncaught oauthexception: unknown path components: /about thrown in [...]/base_facebook.php on line 1028

if want user_about_me , user_education_history can like:

$user = $facebook->api("/me") ;

then parse $user array obtain values need . if wan utilize education history can do:

$user_education_history = $user['education'];

hope helps,. :)

php facebook-graph-api

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -