- App Store
- URL Scheme: twitter://
- URL Scheme Documentation: Not officially documented
The first time you run this action, you will be directed to Twitter to login and allow Drafts permissions to post to your account.
Twitter action steps support multiple accounts using the Drafts Credentials system. You can duplicate the Tweet action above, swipe to right on the action and select “Edit”. Open the steps, then the Twitter step, and insert a “Credential identifier” value.
The identifier can be any value, but all Twitter action steps with the same identifier will use the same credentials (e.g. post to the same Twitter account). In the case of Twitter, I recommend filling in the Twitter handle you want to target. The first time you use each action with a unique identifier, you will be asked to authenticate again via Safari. Be sure you are logged into the right account in Safari to complete this process and link the action to the right Twitter handle.
The Twitter action step has a template. By default the value of this template is the Drafts’
[[draft]] tag which will insert the full text of the current draft. It can also be handy to setup alternate actions for live-tweeting events and similar, where the template is not only the
[[draft]] tag, but also contains a hashtag or other content which will automatically be added when used - like
URL Actions for Twitter Clients
Many Twitter client apps, including the official Twitter app, also support URL schemes to pre-fill their compose window. If you are regular user of Twitter, it is handy to also have a URL-based action for your favorite Twitter client install - this allows you to send text to that app, and complete composing the tweet - for example attaching an image or other media file - before sending. Example for popular clients can be installed from the directory: