WaitXie / facebook-java-api

Automatically exported from code.google.com/p/facebook-java-api
0 stars 0 forks source link

Setting language/locale for result of getSex() and getBirthday() doesn't seem to be possible #237

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Some contents of requested profilefields are localized in a certain way.
E.g. the getSex() method delivers a string which is different from
male/female. As well as getBirthday() also delivers a localized string.
This output - I guess - depends on the locale set by the user.

A desired solution would be to have this information in a format, that
always parses the same way - or simply is in english in all cases and for
all user-locales.

Original issue reported on code.google.com by martin.h...@gmail.com on 28 Aug 2009 at 10:50

GoogleCodeExporter commented 8 years ago
Links to how you can do this using the Facebook REST API please. If Facebook 
doesn't 
provide the API for it, the Java Facebook API can't do it...

Original comment by david.j....@googlemail.com on 28 Aug 2009 at 10:14

GoogleCodeExporter commented 8 years ago

Original comment by david.j....@googlemail.com on 28 Aug 2009 at 10:15

GoogleCodeExporter commented 8 years ago
"birthday" in the getInfos is a localized field where as birthday_date is non
localized version of it.

Original comment by hannu...@gmail.com on 13 Oct 2009 at 1:55

GoogleCodeExporter commented 8 years ago
alright, we'll just mark this closed for now.  I would like someone to find a 
link to
the actual docs in facebook about what they return.. but sadly, there is 
nothing we
can do about it.

Original comment by fern...@gmail.com on 1 Nov 2009 at 12:56

GoogleCodeExporter commented 8 years ago
Here's what I found on FB about birthday_date returns (see 
http://forum.developers.facebook.com/viewtopic.php?pid=204515#p204515):

"birthday_date returns a specific format, MM/DD or MM/DD/YYYY depending on the 
user's 
privacy settings"

Original comment by ruom...@gmail.com on 18 Feb 2010 at 6:26

GoogleCodeExporter commented 8 years ago
See section "API Results and Localization" here: 
http://wiki.developers.facebook.com/index.php/API

Available locales are:
http://wiki.developers.facebook.com/index.php/Facebook_Locales

Original comment by RyanWils...@gmail.com on 7 Apr 2010 at 3:18