Pack Hack
Pack Hack

Reputation: 109

API of "Twitter for iPhone"

I am writing a custom app which constructs a tweet with a webpage link (mine) and send it to Twitter for iPhone (I don't want to handle the posting myself directly to twitter). Is there a way to use the API of "Twitter for iPhone"? (Mine is a jquery app) And importantly, I looking to POST MY TWEET and not display tweets of any twitter member!

Upvotes: 2

Views: 384

Answers (2)

Pawel
Pawel

Reputation: 4715

First of all you should take a look at available URL schemes:

http://handleopenurl.com/

According to the page you can do the following:

twitter://post?message=hello%20world&in_reply_to_status_id=12345

This question might also be helpful, as you need to somehow handle case when the app is not there:

Is it possible to register a http+domain-based URL Scheme for iPhone apps, like YouTube and Maps?

Cheers, Paweł

Upvotes: 4

ceejayoz
ceejayoz

Reputation: 180085

You can use the twitter:// URL scheme.

<a href="twitter://post?message=hello%20world">Post a message</a>

http://handleopenurl.com/scheme/twitter

Upvotes: 1

Related Questions