get application user's info - Facebook-GRAPH API-PHP SDK -


i need dump info of application user's using code !

$fbme     =   $facebook->api('/me'); $str = $fbme['name'].' '.$fbme['sex'].' '.$fbme['hometown_location'].' '.$fbme['profile_url'].'\r\n'; $fp = fopen("data.txt", "w"); fwrite($fp, $str); fclose($fp); 

but shows name, nothing else ! why ?

you're making property names. it's not sex, it's gender. , on. read: http://developers.facebook.com/docs/reference/api/user/


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -