Search code examples
facebookfacebooker

Set facebook application locale based on user's facebook language settings


So if i am French and browse facebook in French, is it possible for an application to change its locale or language settings based on that of the user? In other words, if i open the facebook app, i would like to see the app content in French. Similarly for any other language. How can this be done?

P.S. I am using the old REST api


Solution

  • Ok a couple of ways to do this:

    1) Check for locale in facebook params when the app loads, in particular the "fb_sig_locale" parameter

    2) Use fql on user table like so:

    select locale from user where uid = '1100100101'