I am using login with Instagram in my application. Now when I logged out from my application and again want to logged in to app via Instagram. I want to show Instagram login Page, but it is giving authorised url and directly giving the user data which i used previously for logged in.
Asked
Active
Viewed 797 times
1
Niharika
- 1,188
- 15
- 37
-
You need to 'logout' from Instagram too, and to do that, you need to delete the user token. – saurabh Jan 12 '17 at 07:37
1 Answers
1
you need to clear the cache also, write the following code inside logged out button, for more information see this link
[[NSURLCache sharedURLCache] removeAllCachedResponses];
for(NSHTTPCookie *cookie in [[NSHTTPCookieStorage sharedHTTPCookieStorage] cookies]) {
[[NSHTTPCookieStorage sharedHTTPCookieStorage] deleteCookie:cookie];
}
Community
- 1
- 1
Anbu.Karthik
- 82,064
- 23
- 174
- 143