dounuo9921 2012-04-11 06:09
浏览 82
已采纳

Facebook的用户区域设置与其语言的设置相同吗?

For an app I'm developing for Facebook, when the user first logs in, I'd like for my interface to be in the language they have chosen for their Facebook interface.

(More accurately, since Facebook has more language options than I do, I'll see if their language is among my list of languages, and if so use that language. If not, default to English.)

I know I can get the user's locale from the list of columns they keep of user data.

However, I'm unclear if the locale is equal to their language. If an American lives in Beijing, and sets their interface to use English, wouldn't their locale be China? If I go by that, my interface might be in Chinese, which, depending on the American, could be different from their Facebook interface.

I notice on the same list, there is an array of languages that the user can set if they are multilingual, but I'm not sure if that's a really good indicator of anything. People tend to list languages they can only partially speak, so it might not be helpful to try and go through that list.

Bottom line, what exactly should I do to get a Facebook user's interface language from my PHP script in my canvas directory?

  • 写回答

2条回答 默认 最新

  • doupian9490 2012-04-11 06:41
    关注

    The locale setting in this case is the user's currently selected user interface language.
    See for yourself in the Graph API Explorer. (Change your own language at the bottom of the page)

    Keep in mind that you can access the locale information from the signed request even before the user has authorized your app.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 plotBAPC画图出错
  • ¥30 关于#opencv#的问题:使用大疆无人机拍摄水稻田间图像,拼接成tif图片,用什么方法可以识别并框选出水稻作物行
  • ¥15 Python卡尔曼滤波融合
  • ¥20 iOS绕地区网络检测
  • ¥15 python验证码滑块图像识别
  • ¥15 根据背景及设计要求撰写设计报告
  • ¥20 能提供一下思路或者代码吗
  • ¥15 用twincat控制!
  • ¥15 请问一下这个运行结果是怎么来的
  • ¥15 单通道放大电路的工作原理