Long(er) Thoughts and ramblings

How to Automatically Post to BlueSky from Other Sources

ยท

It has been a bit difficult keeping up with the many new social networks out there but most of the time there is an easy way to federate your posts. The exception as of June 2023 is BlueSky.

However, with a little bit of time, you can FOR FREE create a tool to allow you to automatically crosspost to BlueSky from other sources.

This will require a FREE account at AutoCode (No, this is not a paid enforcement! AutoCode is the only platform that has an built an to interface with BlueSky).

Basically, you create a project, get your BlueSky App Password, add a few lines of code and you have a web hook that can post to BlueSky.

After you create the Web Service, give it a name

Delete everything from Line 3 down.

Start typing on Line 5 await lib.

A dialog will pop up allowing you to select BlueSky

Choose Post a message to your BlueSky feed

And fill in the placeholder text.

Once that is done, AutoCode will fill in all the required fields. You need to then link BlueSky to your project. Click on the BlueSky logo

Follow the directions in the dialog to generate an app password for BlueSky

Once that is done, you have the framework in place to post to BlueSky via a Webhook.

Note at the bottom of your AutoCode project there is a URL you can post to, send a HTTP POST to that URL

Once you send a post on the sidebar you will see the completed request, click on Inspect Request

Depending on the payload, you can insert that element into your placeholder text we created above.

In the placeholder test we created above, replace Sample between the ticks with ${context.params.value} where value is the payload of the JSON key you POSTed earlier.

Now not being a JS developer there is a lot you can to secure the feed but this is the skeleton to post to BlueSky from a WebHook for free!