Open ghost opened 9 years ago
Only seeing this on API 2.4, 2.0 seems to be fine.
@tesserakt API 2.4 doesn't return email as default.
Any solutions for this. I dont see it returning email address for me. Where as other ecommerce site are saving my email.
@habib136888 you can monkey patch method request_phase
https://github.com/spree-contrib/spree_social/blob/3-0-stable/lib/spree_social/engine.rb
OmniAuth::Strategies::Facebook.class_eval do
def request_phase
options[:scope] ||= 'email'
options[:info_fields] ||= 'name,email'
options[:display] = mobile_request? ? 'touch' : 'page'
super
end
end
In the apply_omniauth method we asssume we can get an email out of what FB returns. If there is not one perhaps we should throw an error so we can tell the user 'Hey, FB didn't provide your email, please use another method' Right now the user just gets the 'one more step' error message which isn't that helpful.