Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can i get facebook user information in a specific Locale via facebook connect?

I'm using facebook connect to let users login my application easy. It works well, but, after users allow me to get their facebook info as email, birthday, gender and so on, facebook gives me back these data in user's specific locale.

So, if a user has facebook in english i'll get {"gender" : "male"}, and if a user has facebook in italian, for example, i'll get {"gender" : "uomo"}. Facebook translates the value using user's locale. The problem is that i have to use these user info to make some search on my app, and it's impossible to me to say, for example, "select all 'male' users".

Is there a way to make facebook return user's info in a specific locale? So I will be able to know how to use these data, not only displaying those.

Thanks

like image 678
Stefan Manastirliu Avatar asked Oct 12 '10 13:10

Stefan Manastirliu


People also ask

Does Facebook use localization?

In a nutshell, language localization on Facebook is a type of Facebook campaign that allows you to automatically (or semi-automatically) launch ads to specific speech and language areas within multiple counties, regions and countries.

What kind of information does Facebook collect what are the data used for?

If you have a Facebook account, you've already agreed to allow Facebook to record all of your on-site activity, including who you search, what groups you're part of, your entire social network, and everything you share in Messenger.

How do you change your country on Facebook?

From a Page, click below the cover photo. Select Switch Region. Select the country you want as your default for the Page.


1 Answers

According to this page, the "sex" field always returns in English. Of course, the documentation for the "user" table doesn't have a "gender" field.

http://developers.facebook.com/docs/reference/fql/user/

like image 113
Brent Baisley Avatar answered Oct 11 '22 12:10

Brent Baisley