LoginSignup
2
3

More than 5 years have passed since last update.

OmniauthでFacebookの値を日本語表記で取得する

Posted at

一部のデータが、英語表記になる問題があったので、
下記記事を参考にパラメーターを渡したら、希望の値がかえってきました。

config/initializers/omniauth.rb
provider :facebook, Settings.facebook.consumer_key, Settings.facebook.consumer_secret,{scope: locale: "ja_JP"}

参考

Facebookの氏名を日本語表記で取得する

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3