Discussion Forums  >  Uncategorized

Replies: 9    Views: 353

fcccjeremy
Apple Fan
Profile
Posts: 12
Reg: Apr 13, 2011
Houston, TX
120
05/03/11 08:52 AM (14 years ago)

Share on Twitter not posting to Twitter - BT1.04 on iOS

I have my app almost ready to submit to the app store. I was just testing out the sharing features. I posted to FB and no problem... it showed up in my newsfeed. When I tried to post to twitter everything seemed to work just fine, but it never showed up in my twitter feed. Any Ideas?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
05/03/11 09:36 AM (14 years ago)
Hi in Houston: Havn't heard of this before (yet?). If you're a techie-nerd you could have a look at Screen_ShareTwitter > TwitterRequest.m to see how it works. The screen you see in the app is TwitterViewController.m but the 'logic' is handled by TwitterRequest.m If you can't get anywhere, or don't have any interested in looking at the code in the project, you could wait a few days and see if anyone else reports the same issue. If they do, we'll surely hear about it and figure out / fix at that point ;-)
 
fcccjeremy
Apple Fan
Profile
Posts: 12
Reg: Apr 13, 2011
Houston, TX
120
like
05/03/11 09:45 AM (14 years ago)
I am taking a look, David. I should also add that it's not saving the values for my twitter name and pword even I am telling it to
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
05/03/11 09:48 AM (14 years ago)
I'll get a look into this later too but I don't think the Twitter credentials are saved auto-magically. For a few reasons. It's not a big deal to allow this. Lets get the post-to-twitter figured out then I'll show you a few things to save the login info. Back later. Post what you find.
 
fcccjeremy
Apple Fan
Profile
Posts: 12
Reg: Apr 13, 2011
Houston, TX
120
like
05/03/11 10:05 AM (14 years ago)
More info: I redownloaded the sourcecode to see if that made any difference, no luck. I purposely entered the wrong password for my user name... I still got the dialogue that the Twitter Tweet Posted (which by the way has a typo in it {Clear you Twitter Id if you don't want this app to remember you.})
 
fcccjeremy
Apple Fan
Profile
Posts: 12
Reg: Apr 13, 2011
Houston, TX
120
like
05/03/11 10:28 AM (14 years ago)
file://localhost/Users/~/source/TwitterRequest.m: warning: Deprecations: 'NSErrorFailingURLStringKey' is deprecated got this message even after running the Clean command
 
fcccjeremy
Apple Fan
Profile
Posts: 12
Reg: Apr 13, 2011
Houston, TX
120
like
05/03/11 10:54 AM (14 years ago)
Sorry to be filling up the post here, but I want to provide as much info as possible: I honestly don't know anything about programming language, but here goes some guesses after peeking at the code for TwitterRequest.m I can see from TwitterRequest.h that it is voiding (I assume this means rendering unused) the friends timeline, status update and request sections and so a pink colored void shows up at the beginning of each of those sections in the code. (please correct me if I am misunderstanding) But, there is also a pink void at the beginning of all the connection sections as well... is this preventing the app from actually connecting to twitter? I am guessing this is a connection issue since I seem to be able to enter any invalid username and password and still the dialogue box that says it posted.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
05/03/11 12:18 PM (14 years ago)
Good info: Typo - great catch, can't beleive nobody mentioned it. There are literally thousands of these things in the wild - funny. When you compile with Xcode, do you have your iOS Deployment Target set to iOS 3.0? I say this because there are a few deprecated warnings from Xcode when you targetr newer release of iOS. Set it 3.0... bet it works. This is in the Build Settings (double click your project name in Xcode to open build settings)
 
fcccjeremy
Apple Fan
Profile
Posts: 12
Reg: Apr 13, 2011
Houston, TX
120
like
05/03/11 12:56 PM (14 years ago)
I checked the deployment target... it was set to 4.3, I changed it back to 3.0. It still isn't posting to twitter. I assume the voids i mentioned above have nothing to do with the problem? Thanks so much for you help so far. I am very excited about buzztouch!!!
 
fcccjeremy
Apple Fan
Profile
Posts: 12
Reg: Apr 13, 2011
Houston, TX
120
like
05/05/11 11:27 AM (14 years ago)
I checked the Twitter developer wiki and it says that the URLs being used in TwitterRequest.m are deprecated: http://twitter.com/statuses/friends_timeline.xml http://twitter.com/statuses/update.xml Also it seems that the is authorization needed through OAuth or something else and I don't see that anywhere in the code either.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.