简体   繁体   中英

Facebook Login Screen in different Locale

I have a php application which uses facebook php sdk to integrate Facebook login within the app. I have 5 versions of the app with 5 language settings, but the problem is the facebook Login popup page always opens in English and pop-up opening handler is part of SDK itself, I cant figure out which configuration would lead to the solution.

Earlier, I had managed to show the "Log in to Facebook" button in 5 different languages by including 5 different Javascripts. But I could not find any solution opening the Login Screen in various Languages... Please help

I recommend to use Javascript SDK for login. In Javascript SDK you can load different SDK's which have different locales. Just look at this url: connect.facebook.net/en_US/all.js

Change en_US to any locale. So login screen will be localized as you wish.

Update: It seems that facebook later decided to change this behaviour. According to internationalization document and this blog applications cannot control facebook's locale. Only thing you can do is checking user's locale and adapting your application's locale to Facebook's.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM