Add one of the following functions to the facebookapi_php5_restlib.php file:
Function for users.getInfo:
from: http://forum.developers.facebook.com/viewtopic.php?pid=166745#p166745
public function &users_getInfo_en_US($uids, $fields) { return $this->call_method('facebook.users.getInfo', array('uids' => $uids, 'fields' => $fields, 'locale' => 'en_US')); }
Then you can call users_getInfo_en_US($user, array('sex'));
Functions for FQL:
from the link above, but with pid = 166866 # p166866
One for the en_US locale (from the message in front of it), and the other allows you to go to the locale that you want to use, for example:
public function &fql_query_localized($query, $locale) { return $this->call_method('facebook.fql.query', array('query' => $query, 'locale' => $locale)); }
Then just go to the line 'en_US' for $locale .
ma11hew28
source share