更新时间:2023-02-25 10:06:57
我只需要通过在 devise.rb 中添加这个来检索电子邮件:
I only got to retrieve the email by adding this in devise.rb:
config.omniauth :facebook, "KEY", "SECRET", scope: 'email', info_fields: 'email, name'
Ruby on Rails Omniauth facebook 不回复电子邮件