How can i logout from twitter from my application using fabric framework in iOS -


in ios application, integrate twitter login using fabric frameworktwtrcomposer”. working fine when first time login , post twit on twitter. m not able done logout twitter in application. , second time when try login. twitterlogin view controller not able open. pls 1 can give me solution login , logout application using twtrcomposer

the [twitter sharedinstance] object have 2 method logout : logout , logoutguest.

here link docs: twitter object ios reference

just fyi can check if user logged in using session parameter below

[[twitter sharedinstance] session]

if session nil not logged in.

try below thing if above thing not work, might possible cookies still exist.

nshttpcookiestorage *cookiestorage = [nshttpcookiestorage sharedhttpcookiestorage];     (nshttpcookie *each in cookiestorage.cookies) {        // put check here clear cookie url starts twitter , delete          [cookiestorage deletecookie:each];     } 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -