问题描述
|
基于此stackoverflow问题IOS的foursquare oauth2
我需要将用户从我的应用发送到foursquare。获得许可并重定向到我的Web服务器。我获得了访问令牌,但是如何重定向到视图?
在我的Rhomobile控制器中
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
获得access_token后,如何使我的Web服务器触发rhomobile视图?
解决方法
您可以使用以下方法将重定向uri设置为指向您的Rhodes应用程序:
http://docs.rhomobile.com/rhodes/device-caps#run-rhodes-application-from-browser