如何在xcode中使用foursquare的api从foursquare注销?
我在xcode中使用foursquare api 我所做的是:使用它的api,我成功地在forsquare上获得了身份验证,为了注销,我在那里没有看到任何api文档 我正在使用以下代码,但不工作:如何在xcode中使用foursquare的api从foursquare注销?,xcode,api,foursquare,Xcode,Api,Foursquare,我在xcode中使用foursquare api 我所做的是:使用它的api,我成功地在forsquare上获得了身份验证,为了注销,我在那里没有看到任何api文档 我正在使用以下代码,但不工作: - (void)logout { oAuth4sq=nil; oAuth4sq.oauth_token=nil; oAuth4sq.oauth_token_secret=nil; [oAuth4sq forget]; [oAuth4sq save]; /
- (void)logout {
oAuth4sq=nil;
oAuth4sq.oauth_token=nil;
oAuth4sq.oauth_token_secret=nil;
[oAuth4sq forget];
[oAuth4sq save];
//[self resetUi];
}
有人指导我如何注销用户或终止已验证api的会话吗?这样我就可以在webview中打开一个登录屏幕,而不是让同一个用户在那里进行身份验证
任何帮助都将不胜感激。应用程序不可能终止身份验证密钥——用户需要通过撤销访问权限 如果希望用户确保用户每次都通过auth流显式登录,请对OAuth URL使用/authorize而不是/authenticate/授权始终要求用户授权应用,如果登录用户已授权应用,则as/authenticate自动重定向