How can I access Twitter users feeds, post tweets to twitter and other stuff like that using the Corona SDK? I tested the Corona SDK Twitter Sample Code (http://developer.anscamobile.com/content/twitter) but I can’t get it working. [import]uid: 24111 topic_id: 20264 reply_id: 320264[/import]
I have the same problem. Has anyone run this code? [import]uid: 86335 topic_id: 20264 reply_id: 92745[/import]
Having issues as well. [import]uid: 10903 topic_id: 20264 reply_id: 95555[/import]
Hey Folks,
I think we could use a Twitter tutorial. I’m mostly interested in getting the REST API to work with DropBox, but if someone could explain how to get the Twitter sample to work, that might be enough for me. I’ve looked at Rob Miracle’s REST API tutorial, but it’s intertwined with with PHP and doesn’t address oAuth at all. In searching through the forums, I have found a number of requests for help on the Twitter sample, but no replies. Please consider posting a Twitter tutorial with oAuth.
Thanks! [import]uid: 104085 topic_id: 20264 reply_id: 119757[/import]
I just got the sample code to work. I’ll provide a tip here for other amateurs like me.
You have to modify three parameters in the sample code in the twitter.lua file:
consumer\_key = "" -- key string goes here
consumer\_secret = "" -- secret string goes here
-- The web URL address below can be anything
-- Twitter sends the webaddress with the token back to your app and the code strips out the token to use to authorise it
--
webURL = "http://google.com"
In the code, above, you must add in your consumer key string from Twitter and your secret string from Twitter. You get those by registering with Twitter as a developer and then “creating an app.” When you create the app with Twitter, you get the strings above.
For the purposes of your Corona app, what you choose as the webURL is not very significant. But, it must match exactly with the Callback URL that you specify in your Twitter “app.” Also, I tried using my web site URL and it didn’t work (possibly because my URL is a redirect?), but I read elsewhere that http://google.com would work fine and it did. So, I specified http://google.com in twitter.lua as seen above and as the Callback URL for my Twitter “app” (and for safety as my website for my Twitter app!).
Also, this code will NOT work on the Windows simulator because of the HMAC SHA1 oAuth signature method embedded in oAuth.lua. So, I could only get this to work using my actual Android device. Hope this helps others! [import]uid: 104085 topic_id: 20264 reply_id: 119769[/import]
Hey Folks,
I think we could use a Twitter tutorial. I’m mostly interested in getting the REST API to work with DropBox, but if someone could explain how to get the Twitter sample to work, that might be enough for me. I’ve looked at Rob Miracle’s REST API tutorial, but it’s intertwined with with PHP and doesn’t address oAuth at all. In searching through the forums, I have found a number of requests for help on the Twitter sample, but no replies. Please consider posting a Twitter tutorial with oAuth.
Thanks! [import]uid: 104085 topic_id: 20264 reply_id: 119757[/import]
I just got the sample code to work. I’ll provide a tip here for other amateurs like me.
You have to modify three parameters in the sample code in the twitter.lua file:
consumer\_key = "" -- key string goes here
consumer\_secret = "" -- secret string goes here
-- The web URL address below can be anything
-- Twitter sends the webaddress with the token back to your app and the code strips out the token to use to authorise it
--
webURL = "http://google.com"
In the code, above, you must add in your consumer key string from Twitter and your secret string from Twitter. You get those by registering with Twitter as a developer and then “creating an app.” When you create the app with Twitter, you get the strings above.
For the purposes of your Corona app, what you choose as the webURL is not very significant. But, it must match exactly with the Callback URL that you specify in your Twitter “app.” Also, I tried using my web site URL and it didn’t work (possibly because my URL is a redirect?), but I read elsewhere that http://google.com would work fine and it did. So, I specified http://google.com in twitter.lua as seen above and as the Callback URL for my Twitter “app” (and for safety as my website for my Twitter app!).
Also, this code will NOT work on the Windows simulator because of the HMAC SHA1 oAuth signature method embedded in oAuth.lua. So, I could only get this to work using my actual Android device. Hope this helps others! [import]uid: 104085 topic_id: 20264 reply_id: 119769[/import]
Me too the same problem
[import]uid: 160777 topic_id: 20264 reply_id: 120860[/import]
Me too the same problem
[import]uid: 160777 topic_id: 20264 reply_id: 120860[/import]
there are several issues with this, but i manage to work it properly. The only problem is with this line:
native.showWebPopup(10, 10, display.contentWidth - 20, display.contentHeight - 20, “http://api.twitter.com/oauth/authorize?oauth_token=” … twitter_request_token, {urlRequest = listener})
will not save login data for user because its web popup. Same code run outside app works properly.
Its not about saving user credentials its web popup bug (because its sandboxed ?)
Tom [import]uid: 111283 topic_id: 20264 reply_id: 125322[/import]
there are several issues with this, but i manage to work it properly. The only problem is with this line:
native.showWebPopup(10, 10, display.contentWidth - 20, display.contentHeight - 20, “http://api.twitter.com/oauth/authorize?oauth_token=” … twitter_request_token, {urlRequest = listener})
will not save login data for user because its web popup. Same code run outside app works properly.
Its not about saving user credentials its web popup bug (because its sandboxed ?)
Tom [import]uid: 111283 topic_id: 20264 reply_id: 125322[/import]