Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-07-2011, 03:40 PM   #1 (permalink)
cye
14 Year Old App Developer
 
Join Date: Mar 2010
Location: Texas
Posts: 242
cye is on a distinguished road
Default MGTwitterEngine/SA_OAuthTwitterEngine multiple view controllers how do I handle this?

I'm trying to make a Twitter client app and I'm using a tab bar controller as the root view for the app. I have multiple view controllers, each displaying different tweets, ex: timeline, mentions, direct messages, and retweets. The home timeline works fine, but whenever I try to switch views, I get the "Woah there! It looks like someone already used the token information you provided." message.

I've tried making a singleton class for SA_OAuthTwitterEngine, but then everytime I switch views, it asks me to log in again.

Any help would be appreciated! Thank you so much!

EDIT: I can provide example code if you need it.
EDIT: link to my project Twitter Client Code
__________________
14 year old app developer!

Type Faster and More Accurately With Easy Typing

"Like" me on facebook!

A+ FlashCards currently #6 Free Education app


Confidence is contagious. So is lack of confidence.
-- Vince Lombardi

Last edited by cye; 08-07-2011 at 04:14 PM.
cye is offline   Reply With Quote
Old 08-19-2011, 12:04 PM   #2 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 31
pete42 is on a distinguished road
Default

Quote:
Originally Posted by cye View Post
I'm trying to make a Twitter client app and I'm using a tab bar controller as the root view for the app. I have multiple view controllers, each displaying different tweets, ex: timeline, mentions, direct messages, and retweets. The home timeline works fine, but whenever I try to switch views, I get the "Woah there! It looks like someone already used the token information you provided." message.

I've tried making a singleton class for SA_OAuthTwitterEngine, but then everytime I switch views, it asks me to log in again.

Any help would be appreciated! Thank you so much!

EDIT: I can provide example code if you need it.
EDIT: link to my project Twitter Client Code
So did you get this to work? I downloaded your code but it asks to login when the views are switched.
pete42 is offline   Reply With Quote
Old 08-19-2011, 03:00 PM   #3 (permalink)
cye
14 Year Old App Developer
 
Join Date: Mar 2010
Location: Texas
Posts: 242
cye is on a distinguished road
Default

Quote:
Originally Posted by pete42 View Post
So did you get this to work? I downloaded your code but it asks to login when the views are switched.
Yes I did end up getting it to work.
__________________
14 year old app developer!

Type Faster and More Accurately With Easy Typing

"Like" me on facebook!

A+ FlashCards currently #6 Free Education app


Confidence is contagious. So is lack of confidence.
-- Vince Lombardi
cye is offline   Reply With Quote
Old 08-21-2011, 07:56 PM   #4 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 31
pete42 is on a distinguished road
Default

Quote:
Originally Posted by cye View Post
Yes I did end up getting it to work.
Can you put up the code for what you did to get it to work?
pete42 is offline   Reply With Quote
Old 08-21-2011, 09:10 PM   #5 (permalink)
cye
14 Year Old App Developer
 
Join Date: Mar 2010
Location: Texas
Posts: 242
cye is on a distinguished road
Default

Quote:
Originally Posted by pete42 View Post
Can you put up the code for what you did to get it to work?
DM me, I'll share with you how I did it. Mine implementation is messy though
__________________
14 year old app developer!

Type Faster and More Accurately With Easy Typing

"Like" me on facebook!

A+ FlashCards currently #6 Free Education app


Confidence is contagious. So is lack of confidence.
-- Vince Lombardi
cye is offline   Reply With Quote
Reply

Bookmarks

Tags
iphone, mgtwitterengine, sa_oauthtwitterengine

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 396
14 members and 382 guests
7twenty7, blasterbr, buggen, chiataytuday, dedeys78, dre, fiftysixty, HemiMG, jimmyon122, jonathandeknudt, LEARN2MAKE, pungs, tymex, UMAD
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,669
Threads: 94,121
Posts: 402,903
Top Poster: BrianSlick (7,990)
Welcome to our newest member, dedeys78
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:04 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0