lib/omniauth/strategies/facebook.rb in oa-oauth-0.1.3 vs lib/omniauth/strategies/facebook.rb in oa-oauth-0.1.4
- old
+ new
@@ -22,12 +22,12 @@
def user_data
@data ||= MultiJson.decode(@access_token.get('/me'))
end
- def request_phase(options = {})
+ def request_phase
options[:scope] ||= "email,offline_access"
- super(options)
+ super
end
def user_info
{
'nickname' => user_data["link"].split('/').last,