Skip to content

Instantly share code, notes, and snippets.

@aremu-smog
Forked from apisandipas/share-urls.md
Last active January 22, 2021 05:55
Show Gist options
  • Select an option

  • Save aremu-smog/7d3707a817ea7f84d6b7f8f790985408 to your computer and use it in GitHub Desktop.

Select an option

Save aremu-smog/7d3707a817ea7f84d6b7f8f790985408 to your computer and use it in GitHub Desktop.
Share url's for Facebook, Twitter, WhatsApp, Pinterest and Linkedin with just get variables

Creating share buttons with just URL's

Twitter

http://twitter.com/share?text=<TITLE>&url=<URL>

E.g. http://twitter.com/share?text=This+is+google+a+search+engine&url=https%3A%2F%2Fwww.google.com

Facebook

http://www.facebook.com/sharer.php?u=<URL>&p[title]=<TITLE>

E.g. http://www.facebook.com/sharer.php?u=https%3A%2F%2Fwww.google.com%[title]=This+Is%2C+Google+a+search+engine

WhatsApp

http://api.whatsapp.com/send?text=[CONTENTT_TO_SHARE]

E.g http://api.whatsapp.com/send?text=This+is+google+a+search+engine

Pinterest

http://pinterest.com/pin/create/button/?url=<URL>&description=<TITLE>

E.g http://pinterest.com/pin/create/button/?url=https%3A%2F%2Fwww.google.com&description=This+is+google+a+search+engine

Linked In

https://www.linkedin.com/shareArticle?mini=true&url=[URL]&title=[TITLE]

E.g https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.google.com&title=This+is+google+a+search+engine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment