Good Day
I had a Whatsapp API I used in a URL to send a Whatsapp to a specific person or group in my contact list. Below is the code I used.
https://api.whatsapp.com/resolve?deeplink=/%3Ftext%3D%252AeTrack%2BNational%2BLookout%253A%252A
It normally worked fine and no issues. Now looks like Whatsapp page has been removed. I need a similar external link to send messages from my PHP page to a whatsapp contact or group. We use either Whatsapp Web or their Downloaded app on Windows. On our Android phones the link still works and opens Whatsapp and we can select the recipient. But using Chrome and a Windows system it does not open Whatsapp anymore.
Related
I'm using the link wa.me in a web application for open a chat with a message with emojis. With the message like "Hi 😉" the formed link is like this:
https://wa.me/XXXXXXXXXXXXX?text=Hi+%F0%9F%98%89
When the user opens this link on the smartphone everything is fine, but on the desktop (and WhatsApp Web) the message is sent as "Hi �"
The emoji is encoded correctly ("%F0%9F%98%89"). I found that if I use the old api.whatsapp.com/send instead wa.me, I don't have this error. Could there be something wrong when wa.me redirects to the old api.whatsapp? I'm afraid to use the api.whatsapp in production because the whatsapp documentation doesn't talk about it anymore, and can be changed without notice, I imagine.
I stumble upon this GitHub repo: Social Share URLs That has a complete and updated way of using link on how to share to different social networks.
I stopped using:
https://wa.me/XXXXXXXXXXXXX?text=Hi+%F0%9F%98%89
And now I do it like:
https://api.whatsapp.com/send?phone=XXXXXXXXXXXXX&text=Hi+%F0%9F%98%89
and it works perfectly fine with emojis! In the preview of the API webpage shows the � symbol, but when entering the Whatsapp App it shows the emoji correctly!
I am pretty sure that I successfully connected to Whatsapp Web from a mobile browser an year or two back. I opened the site www.web.whatsapp.com, the usual desktop interface showed up, and I scanned the QR code using a whatsapp account on another phone, and I was logged in from the mobile browser just as I'd be from a desktop browser.
When I try it these days, as of 2020, it doesn't happen. The url www.web.whatsapp.com is automatically and invariably redirected to www.whatsapp.com.
Did they purposely block this avenue, or is it something to do with my devices?
Was this feature undesirable to Whatsapp in any way?
You have to tell your browser to open it as a desktop site.
On iPhone: click on Aa letters in the browser and click "Request Desktop Website".
On Android: click on three dots in the URL section and check "Desktop site".
I am curious to know how Bookmyshow and Redbus decrypts Whatsapp API to send text message via whatsapp ?
Does Whatsapp published their API publically or their technical team decrypt their API ?
So far WhatsApp has not publicly announced API's. It is not sure if there is any API available for premium customers like Bookmyshow or Redbus.
But you can achieve automated message like how Bookmyshow and redbus does by using Selenium combined with WhatsApp Web.
WhatsApp has provided a feature called Click to Chat, reference : https://faq.whatsapp.com/en/26000030/. By this method you can message anyone without having their phone number saved in your phone contacts list.
Click to chat workflow involves
Creating a custom URL with user phone number and text message to send
Clicking on the Send Button (This will open WhatsApp Web with user phone number provided is selected in WhatsApp Web chat area)
Clicking on the send button in chat area of whats app web to send message.
The above 3 steps can be automated using Selenium (Web browser automation).
There are lot of articles explaining this method and one such example can be found at https://www.craftedforeveryone.com/whatsapp-send-api-or-click-to-chat-automation-using-selenium-and-c-sharp/
By using Selenium, WhatsApp for Business and WhatsApp Web you can exactly replicate how bookmyshow sends messages.
WhatsApp for Business provides option to set automatic replies by which you can auto respond to the incoming messages.
I have implemented the Google maps iframe embed api to my website, the map API is working correctly on desktop web browsers as well as Google Chrome for mobile.
However when i attempt to view the page of my site with the API on in mobile safari on iphone i get an error saying;
"The Google Maps API server rejected your request. This IP, Site or mobile application is not authroised to use this API key".
I Have enabled Google Map API for IOS on the google developer console and the issue still hasnt gone away. As i said the API works fine on other mobile browsers.
Does any one have any suggestions how to fix this?
Thanks, Martin
Did you create a new Client ID?
Handheld devices require "Installed Application" Client ID, not "Web Application. "
I am developing social sharing plugin where I want to share my web application url in a browser using whatsapp for mobile device. I am using below code:
"whatsapp://send?text=Hello%2C%20World!"
Using above code, when I try to share without whatsapp installed in the device, it opens up a blank page.
If the user is sharing it via whatsapp and the device doesn't have whatsapp then how can we notify the user that whatsapp is not installed or redirect user to appstore or playstore to install whatsapp?