I want to send an image via the Whatsapp Click to Chat URL. Sending Text is easy.
https://wa.me/?text=LoremIpsum
When I click this link, it opens WhatsApp, and I can select which contact I want to send the message.
Now my question is, if its possible to also send an image through this URL. (maybe with an ?media=https://cdn.example.com/image.jpg parameter). The goal is to send an email to customers and let them click on a link so they can send an image from us to their friends.
Do I need WhatsApp Business for this? Or isn't it possible?
Thanks for any answer.
This is impossible with uri, but you can use Intents on android or use Navigator.share() method on webpages using javascript:
Android Intent: https://developer.android.com/training/sharing/send
Web Share: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/share
There are similar ways for other operating systems such as iOS, Windows, ...
Related
Is there anyway so you can make a link, that when you click it, you instantly send a message to a user in skype? Like I've seen:
Call me
and:
Start chat with me
is there anyway to make a link that sends a chat message, not only starting a chat conversation?
From here: https://msdn.microsoft.com/en-us/library/office/dn745878, it says the following: "Sending instant messages to an individual or establishing a group multi-chat.", but how?
You can open a Group chat in following way:
skype:user1;user2;user3?chat&topic=Topic
but you can only let the API write a Message as Software.
I think it was just a Typo, because a link can't do this...
Use the Skype Web Link
Open Skype
Click Profile Image
Click on "Share Profile"
Send to anyone
Create your own start Call or Chat button
You can create your personalized button with the Official Skype button generator (action, color and size):
https://www.skype.com/en/developer/create-contactme-buttons/
I know you can share messages with and this is working on android and ios now:
Share with whatsapp
However I'd like to share an image trough a button on my website like someone would share an image from his phone (gallery). Is this anyhow possible?
One solution that comes to mind is uploading a photo to your server via AJAX, returning the link to the uploaded photo and then sending a message with the link to your photo using the method you described in your question. This is not quite the same as sending an image directly using Whatsapp since the recipient would only receive a link, but I doubt there will ever be a way to send an image to another application from your gallery using a webpage since that would raise some serious concerns.
Roughly, the process would like this (keep in mind that this will require some testing to get right and find a solution that works well on all platforms or at least most of them):
Create an image upload on your website. Simply having <input type="file" accept="image/*"> on your page should, on most platforms, allow you to create a button which will open a dialog to select an image from your phone's gallery when clicked. You can find a full example here or use a library such as Plupload which contains many upload methods, including HTML5 which is what you need.
Create a simple server-side upload. This depends on your language and platform, but all you need to do is store the image somewhere and return a link to it in response. If you don't want to store these images on your server, you could forward it to Imgur API and upload there.
Redirect the user to the whatsapp:// link that contains the image link.
window.location = 'whatsapp://send?text='+encodeURIComponent(imageURL);
This is the point where you need to do some testing on different platforms, though. You might not be able to redirect to a whatsapp:// link this way (since it seems like a security concern), so you may need to trick it (this is a bad idea, but I'm including it for the sake of completeness; the data-action part is from this answer):
var fakeLink = document.createElement('a');
fakeLink.setAttribute('href', 'whatsapp://send?text='+encodeURIComponent(imageURL));
fakeLink.setAttribute('data-action', 'share/whatsapp/share');
fakeLink.click();
In the end, if neither of these work, your best bet is creating a link once the upload is complete for the user to "confirm" sending which actually contains the above whatsapp:// link in the href field.
There are many factors to test and some that are implementation specific so I had to keep it vague without much code - if you come across anything else when implementing this, please mention it in the comments.
So I want to create a facebook feed to connect for my facebook, from what I understand all I need is a Like Box, but when I put in what information I want on the like box it says "Include the JavaScript SDK on your page once, ideally right after the opening tag." The SDK wants an "app ID", but I don't want to make an app, I just want facebook feeds to show up on my web site. Is there any way to 'not' make an app and just use the like box on my website?
Visit https://developers.facebook.com/docs/plugins/like-box-for-pages while logged out. Then you won't be required to have an App ID.
We want to put a link on our site "Subscribe", when you click this link this is the href
href="mailto:subscriber#org.com&subject=i want to subscribe?body=whatever"
This works great, it's super easy too, but the problem is for anyone who does not have outlook/outlook express installed.
Without real development of any new features is it possible to make this work for gmail/yahoo/aol/etc.... email users?
The mailto URL scheme works in all browsers and only in email clients that support it.
In essence, when clicked it will launch the default email client on the computer and set the to address, subject and body.
You can't make it work in a web based email client, since they can't be set as default email clients.
The action that takes place when a user clicks on a "mailto" link is end user dependent.
There's no way with HTML to determine whether or not a client has Outlook or other client apps installed.
You can sidestep all email clients/webmail services if you instead have a form for submitting messages, with a place to put the email address the company should reply to. A simple CGI or PHP script can turn that to an email on the server side.
This page has a PHP example. http://www.w3schools.com/PHP/php_mail.asp
I would like to know your opinions on how to handle this.
I need to create a link or advertisement that offers a phone app to be downloaded.
I need that users who are viewing the page with their blackberry receive the download when they click the button but everyone else who would be viewing the page would get a form which asks that they insert a phone number to send the application to.
Has anyone else already tackled this or something similar?
This might be a good place where to use user-agent sniffing.
Use this bit of code to display different pages/div's to different browsers.