Zapping Instagram pics to Micro.blog
I like having my Instagram pics automatically posted to my micro.blog, but OwnYourGram stopped working, so I set up Zapier to do it for me instead.
I recently did a little site update where I connected it to my Micro.blog and syndicated the posts here. Micro.blog, in turn, picked up my Instagram posts, routing them over here as well. This was done using a cool, little service called OwnYourGram.
Though a brilliant (and free!) initiative, it didn’t work very well. It was hard to keep track of just when it would reroute my pics, and the other day it stopped working completely. The error message was kinda vague, so I have no idea who’s to blame – might be OwnYourGram, might be micro.blog... might be me.
Anyway, I’d recently set up Zapier to tell Netlify to update my site whenever I’d posted something new to micro.blog, so I thought I’d check if it could also do my Instagram sharing for me. Turns out it could!
- Set up a new access token for Zapier in your micro.blog account settings.
- Make a new Zap. Choose Instagram for your Trigger App and trigger the zap on “New Media Posted in My Account”.
- Connect your Instagram account.
- Select a sample post. Don’t know if it matters much which post you choose, but I guess the point is to use a sample that contains everything you want to re-route. If you want Zapier to publish both your picture and your caption, it’s probably best to use a sample that contains both.
- Add “Webhooks” for you Action step, and select the POST request.
- Use https://micro.blog/micropub as the URL and “Form” as the Payload Type
- Under Data, you’re going to need 4 key-value pairs:
- h: entry (literally, write “entry”)
- access_token: [your access token from step 1]
- photo: “Images Standard Resolution URL” from the Instagram app (via the little button at the right side of the value input)
- content: “Caption Text” from the Instagram app
- Leave the rest of the inputs alone, and click Continue.
- Click the “Send Test...”-button, and your sample Instagram post should appear on your micro.blog timeline.