Micropub + OwnYourSwarm: posting checkins from your phone to your own site
Every time I check in somewhere on Swarm, a post appears on my blog automatically. Micropub helps make this happen.
Micropub is an open standard for posting to your own site from third-party clients. Instead of logging into WordPress, you authenticate once via IndieAuth and then use any Micropub-capable app to publish notes, articles, checkins, and more — directly to your site.
OwnYourSwarm is a service that takes your Swarm (Foursquare) checkins and posts them to your site via Micropub. Your checkins live on your own site, with a static map image, and optionally syndicate out to Mastodon or Bluesky.
## Micropub on WordPress
The **Micropub** plugin by the IndieWeb community adds a Micropub endpoint to WordPress. Install it and your site immediately advertises the endpoint via `rel="micropub"` in the page head.
Authentication goes through **IndieAuth** , which is handled by a separate plugin. IndieAuth lets you use your own domain as your identity — apps redirect to your site’s authorization endpoint, you log in with your WordPress credentials, and the app receives a token it uses for future requests.
## OwnYourSwarm setup
1. Visit ownyourswarm.p3k.io
2. Connect your Foursquare/Swarm account
3. Sign in with your site URL via IndieAuth
4. OwnYourSwarm is now authorised to post to your site
From this point, every Swarm checkin triggers a Micropub POST to your WordPress site. The post includes the venue name, location coordinates, and a Swarm checkin URL.
## Shaping the checkin post
The raw Micropub payload from OwnYourSwarm needs some processing before it makes a readable WordPress post. I handle this with a WordPress mu-plugin using the `pre_insert_micropub_post` filter. The filter sets the post format to `status`, generates post content from the checkin data (venue name, any note you added in Swarm), and sets a short excerpt for card previews.
Checkin cards on the archive: map thumbnail, venue name, location, and a Read More link.
## The static map
Simple Location is a plugin that handles geo data on WordPress posts. When OwnYourSwarm sends coordinates, Simple Location picks them up and can display a map on the post.
I use a static map image in the card excerpt area on archive pages — a small 16:9 thumbnail showing the location. This comes from Simple Location’s map provider integration. Mapbox works well and has a free tier sufficient for a personal site.
On single post pages, Simple Location renders a full map and the location text (“Manchester, Greater Manchester”). The map loads at priority 11 in `the_content` filter — something to know if you’re wrapping content in `e-content` for microformats (that wrapper needs to go at a lower priority, after the map).
## Per-checkin syndication
When posting via Micropub, syndication targets are available as checkboxes in supporting clients. Quill queries `q=syndicate-to` from your Micropub endpoint and shows your configured Mastodon and Bluesky targets. You tick which ones you want per post.
OwnYourSwarm doesn’t expose a syndication target picker — it just posts. If you want checkins to syndicate automatically, configure that in Syndication Links’ global settings. If you want per-checkin control, post manually via Quill instead.
Check in somewhere on Swarm. A post appears on your site within minutes, with venue name, your note, a location tag, and a static map thumbnail. From there it can syndicate to Mastodon or Bluesky if you want. Likes and replies from those platforms come back as webmentions.
My checkin history lives on my own site. If Facebook shuts down Swarm, I still have my own copy.