im trying to use facebook’s api command users.getInfo to retrieve the user’s (if exists) college. Here’s what i got so far. It isnt correct, but i believe i am close:
$uid = $facebook->getUser();
$college = $facebook->api_client->users_getInfo($uid, user_education_history [type="college");
For reference, refer here: https://developers.facebook.com/docs/reference/api/user/
Any suggestions?
You’re using some old methods here. The
education_historyfields have been deprecated as has the RestAPI which has theuser.getInfomethod.A more future proof method would be to use FQL: