2

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!

Pack Hack
  • 109
  • 3
  • 13

2 Answers2

4

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ł

Community
  • 1
  • 1
Pawel
  • 4,699
  • 1
  • 26
  • 26
1

You can use the twitter:// URL scheme.

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

http://handleopenurl.com/scheme/twitter

ceejayoz
  • 176,543
  • 40
  • 303
  • 368