scroom
January 16, 2018, 9:19pm
#1
Hallo,
is there something like a share button function for mastodon? I would like to implement one on my blog. For diaspora there are solutions. If you click on the diaspora share button you get transferred to this page:
https://share.diasporafoundation.org/?url=https%3A%2F%2Fscroom.de%2Fthe-fediverse-strikes-back-mastodon-und-die-hoffnung-auf-eine-befreiung-unserer-sozialen-netzwerke%2F&title=The+Fediverse+strikes+back+–+Mastodon+und+die+Hoffnung+auf+eine+Befreiung+unserer+Sozialen+Netzwerke
Is there a similar page for mastodon?
Thanks in advance!
2 Likes
sftblw
January 22, 2018, 11:48am
#2
I also have searched for it and found this.
Following to the above resources, You can implement It by just creating URL which starts with the protocol web+mastodon://
.
share : web+mastodon://share?text=
+ text to share which is URL encoded
follow : web+mastodon://follow?uri=acct:
+ example_account@domain.com
Example:
<a href="web+mastodon://share?text=I'm%20sharing%20my%20text!">Share text</a>
↓
Share text
2 Likes
web+mastodon
protocol handler has been removed.
Is there any way to handle this without protocol handler?