问题
Based on this stackoverflow question foursquare oauth2 for IOS
I need to send user from my app to foursquare. Get permission and redirect to my web server. I get the access token, but how do I redirect to a view?
In my rhomobile controller I have
def fsq_login
WebView.navigate('https://foursquare.com/oauth2/authenticate?client_id=MY CLIENT_IT&response_type=code&redirect_uri=http://lvh.me:3000/fsq_req')
end
Once I have the access_token, how can I get my webserver to trigger a rhomobile view?
回答1:
You may be able to set your redirect uri to point back to your Rhodes application using the following:
http://docs.rhomobile.com/rhodes/device-caps#run-rhodes-application-from-browser
来源:https://stackoverflow.com/questions/6353419/rhomobile-and-oauth2