localization change by Facebook affecting API calls to restserver.php


With the recent additional of support for localization by the Facebook API per [http://wiki.developers.facebook.com/index.php/Push_Changes_-_Aug_25_2009], there have been several reports that this is failing with this library. Namely, in several places the library assumes that certain string values will be returned (like 'male' and 'female'). To reproduce, create a Facebook application using this framework, and publish it in a non- US English locale through the Translations application at facebook.com/translations. After this, any user browsing the application in said locale will experience the issues.
To fix the issue, the library should be patched to avoid dependencies on particular strings in order to convert the values to enumerations, and instead act in a locale-independent manner.