In my iOS application, i am integrate twitter login using fabric framework “TWTRComposer”. it is working fine when first time login and post t
The [Twitter sharedInstance]
object have two method to logout : logOut and logOutGuest.
Here is the link to the docs: Twitter object iOS reference
Just FYI you can check if the user is logged in using the session parameter like below
[[Twitter sharedInstance] session]
If session is nil then they are not logged in.
Try below thing if above thing not work, It might be possible cookies still exist.
NSHTTPCookieStorage *cookieStorage = [NSHTTPCookieStorage sharedHTTPCookieStorage];
for (NSHTTPCookie *each in cookieStorage.cookies) {
// put a check here to clear cookie url which starts with twitter and then delete it
[cookieStorage deleteCookie:each];
}