Browse files

add email for FB connect

  • Loading branch information...
1 parent a9a88df commit 99de982f38953f782d0d60e4749576d2ae21b7c6 Sébastien Gruhier committed May 21, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 config/initializers/omniauth.rb
View
4 config/initializers/omniauth.rb
@@ -1,9 +1,9 @@
require "omniauth-facebook"
Rails.application.config.middleware.use OmniAuth::Builder do
if Rails.env.development?
- provider :facebook, '362807127093790', 'a3d57d6c1bd18e65c01b0e6fe2900332', :setup => true, scope: "user_birthday,user_about_me"
+ provider :facebook, '362807127093790', 'a3d57d6c1bd18e65c01b0e6fe2900332', :setup => true, scope: "email,user_birthday,user_about_me"
elsif Rails.env.production?
- provider :facebook, '334294033301652', '8606d936d9557b892a5c42c605e83aa2', :setup => true, scope: "user_birthday,user_about_me"
+ provider :facebook, '334294033301652', '8606d936d9557b892a5c42c605e83aa2', :setup => true, scope: "email,user_birthday,user_about_me"
end
end
OmniAuth.config.logger = Rails.logger

0 comments on commit 99de982

Please sign in to comment.