A working and easy way to post tweets.

You must Login before you can answer or comment on any questions.

Hi all, I have to post tweet in my iOS application. I've searched a lot for this and found many ways but either they are on the old authentication mechanism or unfortunately don't work for me. I've tried the OauthAdapter and input all the required data but it always display message "Tweet not published" perhaps I don't know the exact steps to use it. Can somebody(who has done it himself) tell "How can I do this and which way I should go?" Thanks.

— asked 9 months ago by Muhammad Qasim Khan
2 Comments
  • http://developer.appcelerator.com/question/ask

    can you please provide the code sample that you are using with information about the error you are seeing?

    — commented 9 months ago by Aaron Saunders

  • I not getting any error but the alert message that says "tweet not published".....and the code is the same as downloaded from here with specifics of my application. I found about it here. Now which code should I post to you???

    — commented 9 months ago by Muhammad Qasim Khan

3 Answers

Accepted Answer

— answered 9 months ago by Aaron Saunders
answer permalink
12 Comments
  • sorry.. here is a sample of how to use it

    https://gist.github.com/2eabc31db388144b3abc

    — commented 9 months ago by Aaron Saunders

  • Great !!! This is the first code which tweeted for me. Thats what I wanted but I am facing a little problem. Using this code tweet publishes when using the code's own consumer keys, as soon as I insert my own app's credentials (consumer key & secret) it throws error Message : {error:"Couldn't authenticate with OAuth","request":"V1VStatusesVupdate.json"}. Can you tell why this is happening. I'll be really grateful. Thanks

    — commented 9 months ago by Muhammad Qasim Khan

  • I've registered my app with twitter and have all the required consumer keys and access token and My app's access level is set to Read and Write but it still it throws the above mentioned error while tweet is successfully published with the code's default consumer key and consumer secret. Also can this code share photos in status message or not? Thanks

    — commented 9 months ago by Muhammad Qasim Khan

  • Show 9 more comments

You can probably the pull code you need out of Tweetanium since that's a fully-functional twitter client.

— answered 9 months ago by Shannon Hicks
answer permalink
2 Comments
  • I would not recommend tweetanium since it requires xAuth not oAuth and I suspect twitter will not provide access.

    — commented 9 months ago by Aaron Saunders

  • Hey Shannon, Have you posted tweets successfully with tweetanium???

    — commented 9 months ago by Muhammad Qasim Khan

http://dl.dropbox.com/u/54420318/DemoApp.zip

— answered 9 months ago by jayesh joshi
answer permalink
4 Comments
  • Hi, jay I've tried to run this app but when I press the login to tt button I always get the error message "Can not open the Tiitter dialog........Try again"...Can you tell what is the problem???

    — commented 9 months ago by Muhammad Qasim Khan

  • May be it's problem from twitter or you must provide,Consumer key and Consumer secret and Callback URL and your apps's setting > Application type shoud Read, Write and Access direct messages

    or look at

    http://developer.appcelerator.com/question/141908/my-module-for-twitter-and-facebook-for-iphone-only-usign-birdhouse

    — commented 9 months ago by jayesh joshi

  • I've provided all keys of my app and settings are already on "Read, Write and Access direct messages" but I didn't understand the "callback URL" what should I give here?

    — commented 9 months ago by Muhammad Qasim Khan

  • Show 1 more comment

Your Answer

Think you can help? Login to answer this question!