简体   繁体   English

如何使用iOS API注册Foursquare帐户?

[英]How can I sign up for a Foursquare account using the iOS API?

I am working completing an app which makes use of the Foursquare API for iPhone. 我正在完成一个利用iPhone的Foursquare API的应用程序。 Logging in with a user name and password works fine as does all the authentication processes. 使用用户名和密码登录以及所有身份验证过程都可以正常工作。 However, when users go to "sign up" for a new account they are presented with a blank screen. 但是,当用户去“注册”一个新帐户时,他们会看到一个空白屏幕。

There's nothing in my code that is controlling the presentation of this "sign up" window. 我的代码中没有任何东西可以控制此“注册”窗口的显示。 The authentication process is being invoked from https://foursquare.com/oauth2/authenticate which also looks to be correct. 身份验证过程是从https://foursquare.com/oauth2/authenticate调用的,看起来也很正确。

Is this something I can control or is this a HTML bug? 这是我可以控制的东西还是HTML错误?

Clicking the "sign-up" link on the mobile site currently tries to take the user into the iTunes market to download the foursquare app. 单击移动网站上的“注册”链接当前试图将用户带入iTunes市场以下载foursquare应用。 There currently isn't a mobile web new-user sign-up flow, so for now, I recommend configuring the containing webview to allow the user to jump into the itunes store. 当前没有移动网络新用户注册流程,因此,现在,我建议配置包含的Webview以允许用户跳至iTunes存储。 For example: 例如:

if ([request.url.host isEqualToString:@"itms-apps"]) {
  [[UIApplication sharedApplication] openURL:request.url];
}

in the UIWebViewDelegate . UIWebViewDelegate中 We'll update the reference OAuth code accordingly, thanks for bringing this to our attention! 我们将相应地更新参考OAuth代码,感谢您引起我们的注意!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM