Encode URLs for Social Sharing
Prepare URLs with pre-filled text, hashtags, and links for Twitter, Facebook, and LinkedIn share buttons.
Social Media tips
Twitter's tweet intent URL looks like: https://twitter.com/intent/tweet?text=YOUR+TEXT&url=YOUR+URL — both text and url must be encoded.
Facebook's share dialog: https://www.facebook.com/sharer/sharer.php?u=ENCODED_URL — just the URL needs encoding.
LinkedIn share URL: https://www.linkedin.com/sharing/share-offsite/?url=ENCODED_URL — encode your full article URL including query strings.
Test share links in an incognito window to see exactly what the platform will show before adding them to your site.
វាដំណើរការដោយរបៀបណា
ហេតុអ្វីត្រូវប្រើរបស់យើង?
Also check out…
Encode URL Parameters for APIs
Safely encode query string parameters before appen
Encode URLs for Email Links
Create click-safe links for email campaigns — enco
Encode Complex Query Strings
Build and encode query strings with multiple param
Encode URLs for Webhook Callbacks
Encode callback URLs that are passed as parameters
