クイックリファレンス

Web 共有リンク チートシート

ソーシャルメディア共有 URL の生成リファレンス:Twitter/X、Facebook、LinkedIn、Telegram、WhatsApp、Reddit、Web Share API。

· 公開日

直接 URL スキームを活用することで、サードパーティの重いトラッキングスクリプトを読み込むことなく、安全で高速な SNS シェアボタンを実装できます。

SNS 共有用 URL エンドポイント

Twitter / X

https://twitter.com/intent/tweet?url={URL}&text={TEXT}&via={USER}&hashtags={TAGS}

Facebook

https://www.facebook.com/sharer/sharer.php?u={URL}

LinkedIn

https://www.linkedin.com/sharing/share-offsite/?url={URL}

Telegram

https://t.me/share/url?url={URL}&text={TEXT}

WhatsApp

https://api.whatsapp.com/send?text={TEXT}%20{URL}

Reddit

https://reddit.com/submit?url={URL}&title={TITLE}

ネイティブ Web Share API (モダンブラウザ)

if (navigator.share) {
  navigator.share({
    title: document.title,
    text: 'こちらのチートシートをチェックしてみてください!',
    url: window.location.href
  });
}

関連リファレンス

関連テーマ