Vijay
Vijay

Reputation: 11

How to connect to Twitter from iPhone?

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.

Upvotes: 0

Views: 1168

Answers (2)

taskinoor
taskinoor

Reputation: 46037

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.

Upvotes: 1

itsnotvalid
itsnotvalid

Reputation: 245

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=<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.

Upvotes: 0

Related Questions