Logout and switch user



Hi fellas.

I’m in the process of building a simple app that allows the user to login with Twitter, to post content only, nothing fancy. I integrated the Fabric SDK and everything works fine. Users can login and post content.

The only thing that i haven’t figured out yet, as others (1, 2), is how to allow the user to switch between accounts. Once a user logins with valid credentials, the SDK won’t allow to switch users.

This is the code i’m using to login users:

[[Twitter sharedInstance] logInWithCompletion:^(TWTRSession *session, NSError *error) {
            if (session) {
                _twitterAuthToken = [session authToken];
                _twitterAuthTokenSecret = [session authTokenSecret];
                [self updateTwitterButtonWithUsername:[session userName]];
            } else {
                NSLog(@"error: %@", [error localizedDescription]);

I call [[Twitter sharedInstance] logOut] to no avail. A possible solution was posted in Stackoverflow: http://stackoverflow.com/a/30916904/1707219 but it didn’t worked for me.

Is there any way to achieve this?

Thanks in advance

closed #2