You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I setup foursquare as specified in the readme. When I approved foursquare access, foursquare gave a 5 digit code instead of redirecting back to the webapp. Turns out the foursquare behavior has changed an the oauth_callback must be specified when the request token is acquired.
This will get foursquare to redirect back to the webapp. request_token() does an HTTP request to foursquare, and subsequent calls appear to cache the result.
The text was updated successfully, but these errors were encountered:
I setup foursquare as specified in the readme. When I approved foursquare access, foursquare gave a 5 digit code instead of redirecting back to the webapp. Turns out the foursquare behavior has changed an the oauth_callback must be specified when the request token is acquired.
instead of (from README)
oauth = Foursquare::OAuth.new(oauth_key, oauth_secret)
request_token = oauth.request_token.token
request_secret = oauth.request_token.secret
do:
oauth = Foursquare::OAuth.new(oauth_key, oauth_secret)
oauth.request_token(:oauth_callback => "callback url")
request_token = oauth.request_token.token
request_secret = oauth.request_token.secret
This will get foursquare to redirect back to the webapp. request_token() does an HTTP request to foursquare, and subsequent calls appear to cache the result.
The text was updated successfully, but these errors were encountered: