Share to OneSong
Add a button to your site so readers can share a page with the people they’re connected with on OneSong.
The link
https://onesong.group/share?url=…&text=…
Both are optional and URL-encoded. url must be http or https; text is up to 1,500 characters.
Copy-paste button
<a href="https://onesong.group/share?url=YOUR_PAGE_URL&text=YOUR_TEXT"
target="_blank" rel="noopener"
style="display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:#F3EEE4;color:#2A3A30;border:1px solid #2A3A30;font:500 14px/1.2 system-ui,sans-serif;text-decoration:none">
<img src="https://onesong.group/brand/share-to-onesong-color.svg" alt="" width="20" height="20">
Share to OneSong
</a>Optional, to share whichever page the button is on:
<script>
// Fills in the current page automatically.
document.querySelectorAll('a[href^="https://onesong.group/share"]').forEach(function (a) {
a.href = "https://onesong.group/share?url=" + encodeURIComponent(location.href) + "&text=" + encodeURIComponent(document.title);
});
</script>The icon
- Colour SVG: /brand/share-to-onesong-color.svg (PNG 96, 192)
- One colour (uses
currentColor): /brand/share-to-onesong.svg (PNG 96, 192)
What happens
- The reader sees the usual OneSong post box, filled in, with a preview card that OneSong’s server fetches.
- Nothing is posted until they press Post. If they aren’t signed in, they sign in first and come back to the same share.
- All OneSong safety rules and limits apply, including no links from brand-new accounts.
- On phones with OneSong installed, it also appears in the system share menu.