Gli schemi di URL diretti consentono di inserire pulsanti di condivisione social senza caricare pesanti widget di tracciamento di terze parti.
Endpoint URL di Condivisione
Twitter / X
https://twitter.com/intent/tweet?url={URL}&text={TEXT}&via={USER}&hashtags={TAGS}
https://www.facebook.com/sharer/sharer.php?u={URL}
https://www.linkedin.com/sharing/share-offsite/?url={URL}
Telegram
https://t.me/share/url?url={URL}&text={TEXT}
https://api.whatsapp.com/send?text={TEXT}%20{URL}
https://reddit.com/submit?url={URL}&title={TITLE}
API Nativa Web Share (Browser Moderni)
if (navigator.share) {
navigator.share({
title: document.title,
text: 'Dai un'occhiata a questo pratico cheat sheet!',
url: window.location.href
});
}