views:

47

answers:

2

Hi,

I need share on twitter in my application through iPhone.App has to tweet in the twitter. There is a button action on clicking which twitter login page should open. How to do this? Code for this appreciable.. Thank You.

+1  A: 

You can use Twitter-OAuth-iPhone. However, if you are using SDK < 3.2 then you need to download an old version. There is a demo app included which shows how to login and tweet clearly.

For a tutorial on this, check this.

taskinoor
@taskinoor How to use Twitter-OAuth-iPhone in iPhone application?
Vijay
Check the demo app. It's pretty simple. Check the edit. I have added a tutorial link.
taskinoor
@taskinoor Please provide me the link for demo app(sample code)
Vijay
Download the project from github. Already provided you the link. Click the download button on the right side of the page. Demo project is included there.
taskinoor
A: 

Basically you need to refer to Twitter's page for libraries using OAuth on iOS.

Alternatively you may always use the "?status=" method:

http://mobile.twitter.com/?status=&lt;YOUR MSG IN URI-ENCODED FORM>

However that may not work if the user have not signed in yet. Try the OAuth methods which would be harder to implement but safer for sending messages.

itsnotvalid