RailsCasts Pro episodes are now free!

Learn more or hide this

Gökçe ASOVA's Profile

GitHub User: gasova

Site: http://www.asova.com

Comments by Gökçe ASOVA

Avatar

Does someone has an example with localized facebook login page?
The following doesn't work with omniauth-facebook gem

Rails.application.config.middleware.use OmniAuth::Builder do
   provider :facebook,
      'FB_TOKEN',
      'FB_SECRET',
      :authorize_params => {
         :locale => 'tr_TR',
      }
end

it should produce this link

https://www.facebook.com/login.php?{...}&display=page&locale=tr_TR

but produces instead

https://www.facebook.com/login.php?{...}&display=page

Because of that the facebook login page isn't localized