0

I'd like to enable users of my app to associate their twitter accounts so that some application interaction is automatically tweeted.

Users can already associate their twitter accounts via the web interface, and I'd like them to be able to do the same from the mobile (iOS) app.

The problem is, when the application is registered as a web app, a callback URL is specified. So when users log into twitter using SA_OAuthTwitterEngine, the response is redirected to that URL, and the callback events on the client never fire.

Can I use SA_OAuthTwitterEngine, and override the callback parameter (nullify it) so that I get the same interaction (PIN) as a desktop client?

Ovesh
  • 5,209
  • 11
  • 53
  • 73
  • I'm not familiar with SA_OauthTwitterEngine but if it is compliant with the OAuth protocol you should be able to send a callback URL to Twitter with your custom scheme and automatically launch back the application from inside Safari to continue the authentication process inside your app. Tell me if you need details on this. Btw, PIN sucks and a browser inside the app is security theater. – Jano Jun 09 '11 at 11:49
  • I have the exact same problem, were you able to override the callback param in SA_OAuthTwitterEngine? – jottos Nov 14 '11 at 19:09

1 Answers1

1

For a mobile client, best to use xAuth. Using the pin method is suboptimal for mobile. After all your application isn't a web app.

The new MGTwitterEngine has xAuth support, so switching should be painless :)

freespace
  • 16,529
  • 4
  • 36
  • 58