whatsapp

Sharing link on WhatsApp from mobile website (not application) for Android

不羁岁月 提交于 2019-11-26 02:39:52
问题 I have developed a website which is mainly used in mobile phones. I want to allow users to share information directly from the web page into WhatsApp. Using UserAgent detection I can distinguish between Android and iOS. I was able to discover that in order to implement the above in iOS I can use the URL: href=\"whatsapp://send?text=http://www.example.com\" I\'m still looking for the solution to be used when the OS is Android (as the above doesn\'t work). I guess it is somehow related to using

Provide an image for WhatsApp link sharing

こ雲淡風輕ζ 提交于 2019-11-26 02:35:00
How can we include an image in our website to display in WhatsApp when we share a link like this? 2019 standards It takes a few steps to get the perfect preview for WhatsApp, Twitter, Facebook and bookmark icons for pc's and mobile devices. If you like reading go to ogp.me - but make sure to read steps 1 - 6 in this answer to get the best WhatsApp preview. Step 1: title Maximum of 65 characters <title>your keyword rich title of the website and/or webpage</title> Step 2: description Maximum of 155 characters <meta name="description" content="description of your website/webpage, make sure you

Send text to specific contact programmatically (whatsapp)

丶灬走出姿态 提交于 2019-11-26 00:57:29
问题 I wanted to know how I can send text to a specific whatsapp contact. I found some code to view a specific contact, but not to send data. Cursor c = getContentResolver().query(ContactsContract.Data.CONTENT_URI, new String[] { ContactsContract.Contacts.Data._ID }, ContactsContract.Data.DATA1 + \"=?\", new String[] { id }, null); c.moveToFirst(); Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(\"content://com.android.contacts/data/\" + c.getString(0))); startActivity(i); c.close(); This

Provide an image for WhatsApp link sharing

烂漫一生 提交于 2019-11-26 00:45:33
问题 How can we include an image in our website to display in WhatsApp when we share a link like this? 回答1: 2019 standards It takes a few steps to get the perfect preview for WhatsApp, Twitter, Facebook and bookmark icons for pc's and mobile devices. If you like reading go to ogp.me - but make sure to read steps 1 - 6 in this answer to get the best WhatsApp preview. Please note: some apps or websites use cache or even store the website preview to their database. This means when you're testing your

Send text to specific contact programmatically (whatsapp)

一笑奈何 提交于 2019-11-25 20:31:30
I wanted to know how I can send text to a specific whatsapp contact. I found some code to view a specific contact, but not to send data. Cursor c = getContentResolver().query(ContactsContract.Data.CONTENT_URI, new String[] { ContactsContract.Contacts.Data._ID }, ContactsContract.Data.DATA1 + "=?", new String[] { id }, null); c.moveToFirst(); Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("content://com.android.contacts/data/" + c.getString(0))); startActivity(i); c.close(); This works fine for viewing a whatsapp-contact, but how can I add some text now? Or didn't the Whatsapp-developer