iphonetwitterlogoutmgtwitterengine

logout from Twitter in iPhone using OAuth+MGTwitterEngine Library


I had made the twitter application using the OAuth and MGTwitterEngine Library. The login phase is working fine but I am facing problem in logout. I had referred all the post of logout for OAuth but it doesn't works. So can anyone suggest the perfect method for logout from the Twitter ...? OR What changes I have to make in the Library file for the logout..!!


Solution

  • There is no sign out from Twitter OAuth/xAuth... you need to implement client side solution:

    1. persistently store the access token in the keychain or coredata (it never expires unless the user revoke your application from his/her account) when log in and use it in subsequent calls to twitter and " keeping the user signed in"
    2. when signing out delete any related data stored (in this case the access token)

    hope that will help