However, I automatically post from multiple feeds and already had an IFTTT account setup, so I did the lazy thing first. For my set up, I’d have to first parse my feed.json and grab the most recent item, which should be easy. I might do this and then just run it manually after I run my script to publish a new post. I would avoid it.įor Mastodon, it would also be easy to write your own script using curl. MastoFeed is overzealous with the permissions it requests and there’s no information on the site about who owns or made this. However, it only needs the write:statuses scope. However, you should not use this! MastoFeed requests full read/write permissions for everything - all scopes. In fact, it is a bespoke web app specifically for posting RSS content to Mastodon. I found another free service, MastoFeed that claims to do this as well. Set Additional Headers to “Authorization: Bearer YOUR_ACCESS_TOKEN”.Set the Content Type to application/x-www-form-URLencoded.Next, add the “Make a web request” webhooks action.Luckily, using webhooks on IFTTT is free! Creating an Applet on IFTTT to post to Mastodon Generally, I would be happy to pay for a service like this… but not that much. I have a free account and paying $240/year just to post a few dozen articles to Mastodon sounds ridiculous to me. Unfortunately, using webhooks on Zapier is a premium feature and requires a subscription that costs a minimum of $20/month. This bot retrieves the latest item from the RSS/Atom feed and post it to your Mastodon account automatically. For the value, select the feed item title and link.For the Data section, enter “status” as the key.For the next action, choose “Webhooks by Zapier”.Add the “RSS by Zapier” action with “New Item in Feed” as the event.Uncheck all scopes except for write:statuses.Ĭreating a Zap on Zapier to post to Mastodon.Navigate to Preferences > Development and create a new application. Even though I’m enjoying Mastodon, I want to implement automatically posting my RSS feed there too. I prefer to avoid Twitter more these days, so having the automation configured there is very nice. It’s easy enough for me to automate it, and it allows me to publish content without also having to actually login to Twitter or Mastodon to share it there if I don’t want to. I’ve found that some folks prefer social media to be notified of blog posts, rather than subscribe via RSS. This post will assume an account on mastodon.social, but note that other instances may vary slightly. And you’ll need to do some configuration on your Mastodon account as well. The webhook actions require a bit more manual work to set up, unlike the built-in tweet actions. However, we can achieve the same results with a generic webhook action on both platforms. Sadly, neither service has a built-in action for Mastodon. Each has built-in actions for listening to an RSS feed and then tweeting new items as they appear. I use both services for various automations. There are multiple services you can use to do this, like Zapier and IFTTT. If you follow me on Twitter, you’ve likely noticed that my blog posts are automatically tweeted for me.
0 Comments
Leave a Reply. |