I made a twitter application using the OAuth library and MGTwitterEngine. The login phase is working fine, but before logging out I ran into a problem. I sent all the messages about leaving OAuth, but it does not work. So can anyone suggest the perfect method for logging out of Twitter ...? OR What changes should I make to the library file to exit the system. !!
There is no way out of OAuth / xAuth on Twitter ... you need to implement a client solution:
,
- ? , !
: . MGTwitterEngine.m _clearCookies initWithDelegate. , YES. [_engine clearAccessToken]. , , !
, . , ( , ), , , Userdefaults.
, clearAccessToken SA_OAuthTwitterEngine " " .
, , , ,
- (IBAction)logout:(id)sender { [_engine dealloc]; NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; [defaults removeObjectForKey:@"authData"]; [defaults synchronize]; [self presentLoginView]; }
, iOS
:
[_engine clearAccessToken];
_engine - SA_OAuthTwitterEngine.
IBAction.
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; [defaults removeObjectForKey:@"authData"]; [defaults synchronize];
Twitter, "" iPhone.
Source: https://habr.com/ru/post/1772439/More articles:Как выполнить приложение scala swing? - scalaTools for generating Haskell types in Haskell ("second-order Haskell")? - typesDividing PostgreSQL by zero when ordering - sql-order-byExecuting a SQL query - getting a timeout - sqlHow to serialize control + code in WPF? - c #Problem using prototype chain - javascriptHow to create a loosely coupled hot-swappable architecture? - c #scope #undef C ++ - c ++Calling the base class move ctor [C ++ 0x] - c ++Каковы лучшие инструменты анализа и разработки программного обеспечения и которые могут преобразовывать дизайн в настоящий код? - javaAll Articles