简体   繁体   English

如何从Facebook上注销我的iOS应用-就像真正注销一样。 iOS设备使用我的应用无法忘记的Safari cookie

[英]how do I sign my iOS app out of facebook - like REALLY sign out. iOS devices use Safari cookie that my app cannot forget

I have searched high and low and spent 8 hours on this one item alone trying out loads of suggestions here. 我搜寻了很多东西,仅在这一项上就花了8个小时,在这里尝试大量建议。 There are many people stuck on this and other forums. 这个论坛和其他论坛上有很多人。 Here is another way of asking this question - as some people seemed to say it worked, others didn't - i think they were using an older version of the facebook SDK. 这是问这个问题的另一种方式-正如某些人似乎说的那样,而其他人却没有-我认为他们使用的是旧版的Facebook SDK。

I want my app to ask for facebook credentials everytime for one feature. 我希望我的应用每次都要求提供Facebook凭据的一项功能。 Instead what is happening is that the delegate (ios facebook app or ios Safari) is remembering that I am logged in and telling my app - "go for it". 相反,发生的事情是委托人(ios facebook应用程序或ios Safari)记住我已经登录并告诉我的应用程序“继续”。 I don't want that. 我不要 Log out dangit and forget my app! 注销dangit并忘记我的应用!

Upon logout, using Facebook SDK 3.1, I have cycled through my shared cookies as lots of posts tell me - some poeple said thanks it worked, others said it didn't. 在注销后,使用Facebook SDK 3.1,我循环浏览了共享的Cookie,因为很多帖子告诉我-一些人说这很有效,而其他人说却没有。 I HAVE NO COOKIES - the for next loop indicates non whether filtered or not. 我没有菜鸟-for next循环表示是否过滤。

If I force things to Safari for auth and then reset Safari in General->Settings - it will ask for credentials. 如果我强迫Safari进行身份验证,然后在“常规”->“设置”中重置Safari,它将要求提供凭据。 This is what I want everytime without having to go to General->Settings. 这是我每次都想要的,而不必转到“常规”->“设置”。

So a) how can i use my own UIWebView - this would get those cookies working - but I don't think this is how facebook sign on works using the api b) how do I get a hold of those cookies in Safari from my app? 所以a)我如何使用自己的UIWebView-这将使这些cookie正常工作-但我不认为这是使用api进行facebook登录的方式b)我如何从我的应用程序中获取Safari中的这些cookie ? c) how did someone else get this working? c)别人是如何做到这一点的?

I cannot get access to facebook.m - or if so - how did you? 我无法访问facebook.m-如果是,请问您如何? I think that was a prior sdk which a had a hack to a couple of lines. 我认为这是先前的sdk,对两行代码都有入侵。 I am using the framework download. 我正在使用框架下载。

If this doesn't work, I will have them log into a Facebook php page with a session that I can control 如果这不起作用,我将让他们使用可以控制的会话登录Facebook php页面

I'm unclear about whether you are using the iOS Facebook feature, but assuming iOS6+ - Have you tried using ACAccountStore and the removeAccount:withCompletionHandler: method? 我不清楚您是否使用iOS Facebook功能,但假设使用iOS6 +-您是否尝试过使用ACAccountStoreremoveAccount:withCompletionHandler: method?

The full reference is ACAccountStore Class Reference. 完整参考是ACAccountStore类参考。

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

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