开发者

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 f开发者_C百科or this appreciable.. Thank You.


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜