Question

my problem is that i dont know what information needs to be stored for each user and when i've got the information, where do i need to change that information so that my app knows it's changed user. i believe it has something to do with the access token provided, but that's all i've got.

Any help would be much appreciated

Was it helpful?

Solution

you need the username and access token. You cannot store anything else on your application. just send those as login parameters and you should be fine. You will need to create an method (by keychain or NSDefaults) to store this data on your application.

I would suggest to use XAuth instead of OAuth... Best of luck!

edit: The username and token are set after the engine instantiation. If you have a list with usernames and tokens, on the instantiation of the engine you set them like:

self._engine = [[XAuthTwitterEngine alloc] initXAuthWithDelegate:self];
self._engine.consumerKey = kOAuthConsumerKey;
self._engine.consumerSecret = kOAuthConsumerSecret;

I use the XAuthTwitterEngine, but it is probably the same for OAuth...

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top