Mar 24 2016 0

Automatic post to Twitter does not have a feature to automatically posting a notification of a new blog post to for instance Twitter. And based on the following tweet from David, it is not something that will be (ever) added to

But David also noted you can easily set this up using your blog’s RSS-feed, using services like IFTTT or

I have been thinking for quit some time about automatically post every new blog post onto Twitter, but not all post are something everyone needs to be notified of. With the standard RSS-feed it is an all-or-nothing-approach. This is a job for the custom metadata feature of

Added special RSS-feed for posting to Twitter

In your design add a new view, in my case I named it tweetfeed.xml (.xml to ensure the proper content-type is used). As URL I specified /tweetfeed.rss.

Tweetfeed SettingsTweetfeed Settings

The following code is used as the template code (basically the same code as feed.rss, but with custom metadata added and the description field removed);


<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <description>The feed of updates to {{name}}'s blog.</description>

By using the {{#metadata.twitter}} only posts that have the metadata tag Twitter: Yes’ (The value Yes has no actual meaning, it could be anything) will be included within this RSS-feed. For this post the heading is as follows

Date: 2016-03-28
Permalink: automatic-post-to-twitter
Tags: Blot, Twitter, IFTTT
Twitter: Yes

Which results in the following RSS feed to be generated 1

<rss version="2.0">
<title>Shared Memory Dump</title>
<description>The feed of updates to 's blog.</description>
<updated>Thu, 24 Mar 2016 16:15:00 GMT</updated>
<title>Automatic post to Twitter</title>
<pubDate>Thu, 24 Mar 2016 16:15:00 GMT</pubDate>

and the following tweet

Linking new RSS-feed to IFFT

If you don’t already have an IFFT-account, you can sign up here,

On IFTTT I created a new recipe that uses an RSS-feed for a trigger and Twitter as action.

IFTTT recipeIFTTT recipe

I have made my IFTTT recipe public, so you can make use of it if you want, just make sure to change the Feed URL to the one for your own blog…

IFTTT Recipe: Post new RSS entry to Twitter connects feed to twitterIFTTT Recipe: Post new RSS entry to Twitter connects feed to twitter

Previous post
Floating forest in Rotterdam Inspired by Jorge Bakker his artwork ‘In Search of Habitus’, an aquarium filled with bobbers that grow small trees, Dutch designers and
Next post
Happy Easter / Vrolijk Pasen / Sretan Uskrs
This blog is powered by Blot