Iphone - Twitter log out using MGTwitterEngine -


this question has answer here:

i'm working on twitter integration on iphone application using mgtwitterengine.

can tell me how log out current user?

thank you, andrei

for logout use these lines self._engine object of sa_oauthtwitterengine

  • (void) ourlogoutmethod
    {
    [self._engine setclearscookies:yes];
    [self._engine clearaccesstoken];

    nshttpcookie *cookie; nshttpcookiestorage *storage = [nshttpcookiestorage sharedhttpcookiestorage]; (cookie in [storage cookies]) {     nsstring* domainname = [cookie domain];     nsrange domainrange = [domainname rangeofstring:@"twitter"];     if(domainrange.length > 0)     {         [storage deletecookie:cookie];     }  } 

}


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -