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 01-09-2010, 07:56 PM   #1 (permalink)
Registered Member
 
scotopia's Avatar
 
Join Date: Oct 2008
Posts: 2,070
scotopia is on a distinguished road
Default Twitter Images using oAuth

Hello All,

I'm having a real b**** of a time trying to get images uploaded to twitter using some oAuth friendly way. After trying a bunch of different avenues it seems that the friendliest oAuth implementation of twitter proper is here:

bengottlieb's Twitter-OAuth-iPhone at master - GitHub

So it seems like the path forward is trying to integrate one of the oAuth image services into this (img.ly, yFrog, twitGoo, etc....apparently twitPic does NOT do oAuth).

I'm just out of my depths on this currently; anyone have any experience with this? Thanks!
scotopia is offline   Reply With Quote
Old 01-10-2010, 09:26 AM   #2 (permalink)
Registered Member
 
scotopia's Avatar
 
Join Date: Oct 2008
Posts: 2,070
scotopia is on a distinguished road
Default

Anyone having luck with this? Getting beat up pretty hard.
scotopia is offline   Reply With Quote
Old 01-10-2010, 10:52 AM   #3 (permalink)
Registered Member
 
scotopia's Avatar
 
Join Date: Oct 2008
Posts: 2,070
scotopia is on a distinguished road
Default

Hmm when I run the demo project I can login to my oAuth app okay; but the when the demo status update fires I get back:

Code:
2010-01-10 11:46:09.336 OAuthTwitterDemo[1137:207] Request 97118C2E-AB6D-40A5-87B0-3EBFF1C3842D failed with error: Error Domain=HTTP Code=401 "Operation could not be completed. (HTTP error 401.)"
I'm researching it now and not seeing what to do clearly; anyone encounter this before with oAuth?
scotopia is offline   Reply With Quote
Old 01-10-2010, 01:11 PM   #4 (permalink)
Registered Member
 
scotopia's Avatar
 
Join Date: Oct 2008
Posts: 2,070
scotopia is on a distinguished road
Default

It is very possible I have the twitter app settings incorrect at Twitter

I currently have it set up as Client Type, Read and Write, Yes user twitter for authentication. Perhaps it's supposed to be browser type but I'm not sure what to put for the callback URL.
scotopia is offline   Reply With Quote
Old 01-10-2010, 02:24 PM   #5 (permalink)
Registered Member
 
scotopia's Avatar
 
Join Date: Oct 2008
Posts: 2,070
scotopia is on a distinguished road
Default

Figured it out! Turns out that my twitter account was only allowing read access from an earlier setup; i had to revoke it in the connections tab of my twitter account and only then would the new authentication (with read and write) kick in. Nasty Gotcha!
scotopia is offline   Reply With Quote
Old 01-10-2010, 11:52 PM   #6 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 89
kiancheong is on a distinguished road
Default

i had the same experience while working on iType2Go.. and would have gladly shared.. but i am also equally thrived to see you finally got it working..
kiancheong is offline   Reply With Quote
Old 01-10-2010, 11:59 PM   #7 (permalink)
Registered Member
 
scotopia's Avatar
 
Join Date: Oct 2008
Posts: 2,070
scotopia is on a distinguished road
Default

Quote:
Originally Posted by kiancheong View Post
i had the same experience while working on iType2Go.. and would have gladly shared.. but i am also equally thrived to see you finally got it working..
Lol thanks; this stuff is sure a bigger pain than it should be!
scotopia is offline   Reply With Quote
Reply

Bookmarks

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: 336
15 members and 321 guests
akacaj, alexP, ClerurcifeDer, Domele, Duncan C, givensur, GraffitiCircus, JmayLive, michelle, NetGuru, NSString, Paul Slocum, Sloshmonster, soohyun, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,650
Threads: 94,114
Posts: 402,883
Top Poster: BrianSlick (7,990)
Welcome to our newest member, soohyun
Powered by vBadvanced CMPS v3.1.0

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