Twitter / Twitter Sample / oAuth fails

I doubt very seriouslly that this is a Corona daily build issue, nor is it a change to the sample code, since nothing on our side with twitter has changed.

I suspect Twitter has changed something, but didn’t blog it or announce it to the developers. I doubt it has anything to do with SDK 1.1 either. I reported some findings to Engineering last night when this first came up, but it was kind of late, so it might not get looked into until today.

[import]uid: 199310 topic_id: 36166 reply_id: 143714[/import]

It can’t be a daily issue as we haven’t updated since 971 and are having the same issue. [import]uid: 119420 topic_id: 36166 reply_id: 143719[/import]

OK, false alarm then. Glitch Games: would it be possible for you to fix your lib or is this something that will take time? I was about to upload my binary to Apple but since the lib is not working it does not make sense to do so. [import]uid: 101883 topic_id: 36166 reply_id: 143721[/import]

Maybe the auth request is missing params :
It seems that twitter doesn’t accept the headers to get a token.
here’s the raw data form the response headers,

2013-02-21 17:30:30.378 Corona Simulator[69116:707] set-cookie: k=10.34.253.124.1361464230253360; path=/; expires=Thu, 28-Feb-13 16:30:30 GMT; domain=.twitter.com, guest\_id=v1%3A136146423026234752; domain=.twitter.com; path=/; expires=Sun, 22-Feb-2015 04:30:30 GMT, \_twitter\_sess=BAh7CDoPY3JlYXRlZF9hdGwrCHiBl%252F08ASIKZmxhc2hJQzonQWN0aW9uQ29u%250AdHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7ADoHaWQiJTZk%250AZGU1ZGNkNWU1MjFhMTQ0NWFhYWFkNjQ0YjdhYTE3--4d46e01c66271603dd7954182ce2d7ce357cb716; domain=.twitter.com; path=/; HttpOnly 2013-02-21 17:30:30.378 Corona Simulator[69116:707] server: tfe 2013-02-21 17:30:30.378 Corona Simulator[69116:707] x-mid: b0e635df85aca17de527b5570808f31596e76e61 2013-02-21 17:30:30.378 Corona Simulator[69116:707] date: Thu, 21 Feb 2013 16:30:30 GMT 2013-02-21 17:30:30.379 Corona Simulator[69116:707] last-modified: Thu, 21 Feb 2013 16:30:30 GMT 2013-02-21 17:30:30.379 Corona Simulator[69116:707] x-transaction: c1fd8a4ffcee681b 2013-02-21 17:30:30.379 Corona Simulator[69116:707] content-length: 44 2013-02-21 17:30:30.379 Corona Simulator[69116:707] expires: Tue, 31 Mar 1981 05:00:00 GMT 2013-02-21 17:30:30.379 Corona Simulator[69116:707] cache-control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0 2013-02-21 17:30:30.380 Corona Simulator[69116:707] content-type: text/html; charset=utf-8 2013-02-21 17:30:30.380 Corona Simulator[69116:707] vary: Accept-Encoding 2013-02-21 17:30:30.380 Corona Simulator[69116:707] status: 401 Unauthorized 2013-02-21 17:30:30.380 Corona Simulator[69116:707] pragma: no-cache 2013-02-21 17:30:30.380 Corona Simulator[69116:707] x-runtime: 0.01569 2013-02-21 17:30:30.380 Corona Simulator[69116:707] x-frame-options: SAMEORIGIN [import]uid: 3638 topic_id: 36166 reply_id: 143722[/import]

I believe it is something to do with the OAuth yea, but I’llm be the first to admit that I’m no expert in that area. GGTwitter uses the OAuth.lua file provided by Corona so there may be an issue with that. I think Twitter uses OAuth 1.0a but I’m not sure what the difference is ( if any ) between 1.0 and 1.0a [import]uid: 119420 topic_id: 36166 reply_id: 143723[/import]

I had the same issues as well. then found this http://www.coronalabs.com/blog/2013/02/11/using-the-ios-built-in-twitter-feature/ . It’s much simpler (doesnt require oAuth.lua and twitter.lua since it’s a native pop up) and works awesomely for me. it even does an easy way to share picture via Twitter. However I believe it’s not supported on Android this time but since i develop apps for iphone mostly then who cares. :smiley: [import]uid: 169208 topic_id: 36166 reply_id: 144761[/import]

Any news on the oAuth issues and if this is Corona related? I am still facing the same problem. [import]uid: 101883 topic_id: 36166 reply_id: 144002[/import]

I don’t have an answer yet. I’m staying on it. [import]uid: 199310 topic_id: 36166 reply_id: 144062[/import]

I had the same issues as well. then found this http://www.coronalabs.com/blog/2013/02/11/using-the-ios-built-in-twitter-feature/ . It’s much simpler (doesnt require oAuth.lua and twitter.lua since it’s a native pop up) and works awesomely for me. it even does an easy way to share picture via Twitter. However I believe it’s not supported on Android this time but since i develop apps for iphone mostly then who cares. :smiley: [import]uid: 169208 topic_id: 36166 reply_id: 144761[/import]

I’m trying to figure out what is going on here. I’m going to ask and see if anyone is aware of any changes.
[import]uid: 199310 topic_id: 36166 reply_id: 143664[/import]

I am using the Twitter lib from Glitch Games (http://www.glitchgames.co.uk/code/) and it worked perfectly before. However, it stopped working for me as well so it seems as if something has happened in one of the last daily builds. I guess it is about authorisation with Twitter.

Would be great if this could be fixed.

Jens [import]uid: 101883 topic_id: 36166 reply_id: 143697[/import]

I’ve just been informed of the new Twitter 1.1 API however that shouldn’t be in effect yet so I don’t think it will be that. Would love to get some answers too so that I can make sure GGTwitter is fully working. [import]uid: 119420 topic_id: 36166 reply_id: 143698[/import]

Isn’t Twitter 1.1 API already live?

See:
https://dev.twitter.com/docs/api/1.1

Jens [import]uid: 101883 topic_id: 36166 reply_id: 143704[/import]

I thought they weren’t forced until March, maybe I’m wrong though? [import]uid: 119420 topic_id: 36166 reply_id: 143708[/import]

You may be right as Twitter says everyone should move over to API 1.1 as soon possible. Maybe it will be mandatory from somewhere in March on.

[import]uid: 101883 topic_id: 36166 reply_id: 143712[/import]

I doubt very seriouslly that this is a Corona daily build issue, nor is it a change to the sample code, since nothing on our side with twitter has changed.

I suspect Twitter has changed something, but didn’t blog it or announce it to the developers. I doubt it has anything to do with SDK 1.1 either. I reported some findings to Engineering last night when this first came up, but it was kind of late, so it might not get looked into until today.

[import]uid: 199310 topic_id: 36166 reply_id: 143714[/import]

It can’t be a daily issue as we haven’t updated since 971 and are having the same issue. [import]uid: 119420 topic_id: 36166 reply_id: 143719[/import]

OK, false alarm then. Glitch Games: would it be possible for you to fix your lib or is this something that will take time? I was about to upload my binary to Apple but since the lib is not working it does not make sense to do so. [import]uid: 101883 topic_id: 36166 reply_id: 143721[/import]

Maybe the auth request is missing params :
It seems that twitter doesn’t accept the headers to get a token.
here’s the raw data form the response headers,

2013-02-21 17:30:30.378 Corona Simulator[69116:707] set-cookie: k=10.34.253.124.1361464230253360; path=/; expires=Thu, 28-Feb-13 16:30:30 GMT; domain=.twitter.com, guest\_id=v1%3A136146423026234752; domain=.twitter.com; path=/; expires=Sun, 22-Feb-2015 04:30:30 GMT, \_twitter\_sess=BAh7CDoPY3JlYXRlZF9hdGwrCHiBl%252F08ASIKZmxhc2hJQzonQWN0aW9uQ29u%250AdHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7ADoHaWQiJTZk%250AZGU1ZGNkNWU1MjFhMTQ0NWFhYWFkNjQ0YjdhYTE3--4d46e01c66271603dd7954182ce2d7ce357cb716; domain=.twitter.com; path=/; HttpOnly 2013-02-21 17:30:30.378 Corona Simulator[69116:707] server: tfe 2013-02-21 17:30:30.378 Corona Simulator[69116:707] x-mid: b0e635df85aca17de527b5570808f31596e76e61 2013-02-21 17:30:30.378 Corona Simulator[69116:707] date: Thu, 21 Feb 2013 16:30:30 GMT 2013-02-21 17:30:30.379 Corona Simulator[69116:707] last-modified: Thu, 21 Feb 2013 16:30:30 GMT 2013-02-21 17:30:30.379 Corona Simulator[69116:707] x-transaction: c1fd8a4ffcee681b 2013-02-21 17:30:30.379 Corona Simulator[69116:707] content-length: 44 2013-02-21 17:30:30.379 Corona Simulator[69116:707] expires: Tue, 31 Mar 1981 05:00:00 GMT 2013-02-21 17:30:30.379 Corona Simulator[69116:707] cache-control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0 2013-02-21 17:30:30.380 Corona Simulator[69116:707] content-type: text/html; charset=utf-8 2013-02-21 17:30:30.380 Corona Simulator[69116:707] vary: Accept-Encoding 2013-02-21 17:30:30.380 Corona Simulator[69116:707] status: 401 Unauthorized 2013-02-21 17:30:30.380 Corona Simulator[69116:707] pragma: no-cache 2013-02-21 17:30:30.380 Corona Simulator[69116:707] x-runtime: 0.01569 2013-02-21 17:30:30.380 Corona Simulator[69116:707] x-frame-options: SAMEORIGIN [import]uid: 3638 topic_id: 36166 reply_id: 143722[/import]

I believe it is something to do with the OAuth yea, but I’llm be the first to admit that I’m no expert in that area. GGTwitter uses the OAuth.lua file provided by Corona so there may be an issue with that. I think Twitter uses OAuth 1.0a but I’m not sure what the difference is ( if any ) between 1.0 and 1.0a [import]uid: 119420 topic_id: 36166 reply_id: 143723[/import]