swift - Clearing of app cache in iOS works for Google+ login, but doesn't work for Facebook -
in app implemented login using facebook , google+. given scenario:
- i logged in using fb account 1
- i login using fb account 2, log out
- on safari view message "you have granted permissions app"
which ok end expected. user needs log out safari browser. myself cleaning cookies , urlcache:
urlcache.shared.removeallcachedresponses() urlcache.shared.diskcapacity = 0 urlcache.shared.memorycapacity = 0 if let cookies = httpcookiestorage.shared.cookies { cookie in cookies { httpcookiestorage.shared.deletecookie(cookie) } }
this code erases data google+, doesn't change facebook. expected behavior? why? if no - way clean facebook data well?
you can try way. when use fb login can first use logout
fbsdkloginmanager *manager = [[fbsdkloginmanager alloc] init]; //manager.loginbehavior=fbsdkloginbehaviorweb; [manager logout];
hope helps.
Comments
Post a Comment