How to change language in Facebook login page?

匿名 (未验证) 提交于 2019-12-03 08:52:47

问题:

In Facebook API, there is a Hackbook project for a demo.

When I try to login to facebook via this Hackbook project, the login page is always not in English.

URL of the login page is http://m.facebook.com/dialog/oauth?xxxxxxx (it has more parametors .... )

so, I visited Facebook site(www.facebook.com) in Safari and changed the language to English, but the language in the login page from Hackbook project is not changed.


How can I change it to English? or is there the auto language detection in Facebook?

Any help would be appreciated!

回答1:

There is an autodetection based on safari. I've tried to force the language on http://m.facebook.com adding the parameter "?locale2=en_EN"

So if you access to http://m.facebook.com/?locale2=en_EN, facebook login will be in english, but if you change the locale you can load any language you want (example: http://m.facebook.com/?locale2=es_ES for spanish)

I pressume you can use this parameter in your dialog call, but I didn't tried yet.

Best regards!



回答2:

Don't work with en_EN, but with en_US worked. Also we can use locale param instead of locale2



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!