Javier Leiva

Growing by Learning and Learning by Doing

How to Connect your WordPress Site to the Fediverse

If you want to interact with the #Fediverse directly from your #WordPress site, there are a couple of plugins that will make it possible:

  1. ActivityPub connects the site to the open networking protocol with the same name (see ActivityPub on W3C). It enables a username people can use to discover and follow the blog profile. Mine is @javier. That means that if anyone follows that username on the Fediverse and I post new content like this one I’m writing now, they will get it the same way they get messages from accounts hosted on Mastodon, Pixelfed, or others (see apps list on fediverse.party).
  2. Friends it’s an extra plugin that allows following other accounts directly from WordPress and interacting with them. So far, I have a Mastodon profile (@javierleiva), but if I wanted to get rid of it and do it all using WordPress and the username I mentioned above, in theory, I could. But from what I’ve seen, it’s a different experience, and I realize the ultimate author’s goal might not be creating yet another Mastodon but more of a feed reader with some limited embedded social features.

Issues I found while trying to make Activity Pub work:

  1. Webfinger endpoint is not accessible. The plugin works out of the box, but there are times when the new profile is not visible on Mastodon. Sometimes the cause is the hosting provider blocking the use of the .well-known path. In my case, I thought that was the issue, but it turned out to be something different: WordPress needs to be installed in the domain root (mine was in a /blog folder, but I moved the installation, which solved it).
  2. How to update the new profile description: you can simply update the Bio field on your WordPress user page. It will not update immediately everywhere else, but give it some time, and eventually, it will.
  3. New following requests get stuck as pending approval. Again, give it some time, and it will resolve by itself.

Two of the three issues I described only needed time to process. In other words, I get too anxious and should be more patient when working on this technical stuff. :-/

2 thoughts on “How to Connect your WordPress Site to the Fediverse

  1. @javier Thanks for this recap! I was looking into this briefly but the bare Activitypub feed seems like an RSS feed in terms of functionality (which can be nice!)I was hoping for something that supports an account capable of engagement, but it looks like there's no easy option for that yet.

    1. yes, that would be my goal too, but unfortunately, it doesn’t seem possible.

      Actually, your reply confirms how limited it is for now. I was only aware of it because I am following you on WordPress too, and your message showed up there. But I don’t see a way to reply to you from that profile. I had to locate your message on Bend.town because otherwise, I can’t see it, and now I’m using the other one on Mastodon to interact with you.

      But if it becomes possible, I will love it.

Leave a Reply

Your email address will not be published. Required fields are marked *