Skip to content

Commit

Permalink
Merge pull request omniauth#430 from felipecsl/master
Browse files Browse the repository at this point in the history
Fix for foursquare strategy
  • Loading branch information
sferik committed Aug 15, 2011
2 parents 78f106b + e1ce3fd commit 3b6d283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oa-oauth/lib/omniauth/strategies/oauth2/foursquare.rb
Expand Up @@ -34,7 +34,7 @@ def authorize_url(options)
end

def user_data
@data ||= MultiJson.decode(@access_token.get('https://foursquare.com/users/self', {'oauth_token' => @access_token.token}))
@data ||= MultiJson.decode(@access_token.get('https://api.foursquare.com/v2/users/self', { :params => { 'oauth_token' => @access_token.token } }).body)
end

def request_phase
Expand Down

0 comments on commit 3b6d283

Please sign in to comment.