How to embed a toot on an external page?


#1

I’ve found some similar issues, but no-one really answered this simple question:

On the joinmastodon.org blog you often embed toots in your blog posts, but how can one actually do so on their own (external) page?

You can consider I know the exact toot (i.e. user and URL) of the toot I want to embed.

This may also be a good topic for an actual joinmastodon.org blog post, I guess. :smiley:


#2

Is it not simply using the embed function under the toot itself, e.g.

<iframe src="https://toot.wales/@jaz/101478263584299069/embed" class="mastodon-embed" style="max-width: 100%; border: 0" width="400"></iframe><script src="https://toot.wales/embed.js" async="async"></script>

#3

if you click on the details menu for a status, there’s an Embed option


#4

Actually, I get a 404 error when I try to request the embed code for posts in the federation. It works for posts on my instance.


#5

hmm they are not using mastodon them. Just tested with Pleroma and Got 404 Error


closed #6