ios - Twitter Logout from browser not reflecting in app -


i have usedsttwitterapi login using eitheracaccountstore or browser.

here's condition thats creating issue me. when user logs in app using twitter browser(default safari), gets call-backed app andsttwitterapi object stores data.

everything works fine. can tweet using account. if user switches browser(default safari) , logs out twitter account(which used while logging) , returns app tweet, done old account (associated earlier in browser before logging out), should not case.

i want ask user again logging in logged out browser. tried usingverifycredentialswithsuccessblock:errorblock: returns me user details of old user(the 1 logged out).

update:

app doesn't redirects user browser after user logged in. concern if user opens twitter in browser out of volition, shown logged in account used while logging in(and should case), user decides either log out account or wishes change account , logs out account(used during login) browser.

it gets logs out (which fine) when returns app, , try tweet or of twitter account, should asked log in again. used verify credentials. access token of previous login still valid.

so, how notify app user has logged out of browser or switched account. there way achieve. i'm stuck at-least week. tried every alternative. none of them seems work in case. appreciated. thank you!!!

i haven't used sttwitter framework much. can confidently twitterkit fabric easier use. have used scenario of signup , signout twitter in app , works flawlessly methods provided it. can check out here:

https://dev.twitter.com/twitter-kit/ios/twitter-login

the syntax login this:

[[twitter sharedinstance] loginwithcompletion:^             (twtrsession *session, nserror *error) {   if (session) {       nslog(@"signed in %@", [session username]);   } else {       nslog(@"error: %@", [error localizeddescription]);   } }]; 

and logout have – logout method respectively.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -