As there is no single share domain like you have with closed social media sites, the share button needs to ask the user for their instance name in order to create a share link.
This made my think. Do we really need to include share buttons on all our sites? I say no, and therefore removed the share button from my site.
The browsers should offer a built-in share button. We already have the Web Share API, and Mastodon (at least the instance mastodon.social) already registered itself as a Web Share API.
So, if I add this page as a PWA on Android, I can use the native share functionality to share to this page. I hope browsers will offer this also on desktop browsers.
For example, Chromium already has a share button in their browser, they can add a 'add site' feature, where I can enter a URL. The browser would check if 'share_target' is defined in the web manifest, and add this page to the share options.
This way I would only need to add Mastodon once there and can easily share every page I visit to Mastodon. Make it happen, browser makers.
Also posted on: Mastodon