Skip to content

Instantly share code, notes, and snippets.

@dcuadraq
Last active November 16, 2016 22:39
Show Gist options
  • Save dcuadraq/7f1f5ef15597a80b776a4703ac662ff3 to your computer and use it in GitHub Desktop.
Save dcuadraq/7f1f5ef15597a80b776a4703ac662ff3 to your computer and use it in GitHub Desktop.
Social share

Javascript libraries

For webcam input, freeze and convert to img.

Whatsapp

Using a link you can open whatsapp on mobile and have a predefined text to be sent to 1 or more contacts. If it is 1, it will open the conversation and the text will be already typed but it can be edited. In case of selecting multiple contacts, the message will be sent individualy without being able to edit.

<a href="whatsapp://send?text=https://cdn.shopify.com/s/files/1/0743/4993/products/Cyprus_Mesa_de_Ajedrez_de_Madera_-_Nogal_3.png" data-action="share/whatsapp/share">Share via Whatsapp</a>

Sources

http://stackoverflow.com/questions/21935149/sharing-link-on-whatsapp-from-mobile-website-not-application-for-android

https://udinra.com/blog/whatsapp-share-button-website

https://www.quora.com/Will-it-be-possible-to-integrate-WhatsApps-share-button-on-a-website-and-share-different-content-to-my-WhatsApp-contacts-using-WhatsApp-Web-from-a-desktop

https://www.whatsapp.com/faq/en/iphone/23559013

To show a preview of the image http://stackoverflow.com/questions/19778620/provide-a-picture-for-whatsapp-link-sharing

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