How to change the language on the Facebook login page?

The Facebook API has a Hackbook project for demonstration.

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

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

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


How can I change it to English? or is there automatic language detection on facebook?

Any help would be appreciated!

+4
source share
2 answers

There is auto-detection based on safari. I tried to force the language http://m.facebook.com to add the parameter "? Locale2 = en_EN"

So, if you go to http://m.facebook.com/?locale2=en_EN , then log in to facebook in English, but if you change the language, you can upload any language you want (example: http: //m.facebook.com/?locale2=es_ES for Spanish)

I want you to be able to use this parameter in your dialog call, but I have not tried it yet.

Yours faithfully!

+2
source

It does not work with en_EN , but it worked with en_US . We can also use locale param instead of locale2

0
source

Source: https://habr.com/ru/post/1386990/


All Articles