How to get the user's locale?




Appreciate if you can like this page if you find it useful! - Click "Like"

Currently, this little but important piece of information is not available via the Graph API.

To the get user's locale, you have to use one of the following ways:

  • Get it via calling calling the users.getinfo method in the Old Rest API.

  • Whenever Facebook server calls back to your server, Facebook includes the locale in the parameter 'fb_sig_locale'. However, at the moment, you have to disable the "New SDKs" options in the "Migration" tab of your application settings. (As far as I know, Facebook is currently working on that already.)


** updated on 25Jul2010: the "New SDKs" option has been renamed as "Canvas Session Parameter" recently.



Find my FAQ on Facebook Development useful? Download the PDF for all the FAQs HERE!