简体   繁体   English

WhatsApp HTML 链接

[英]WhatsApp HTML link

iam tried to connect whatsapp from html webpage using UAE PHONE NUMBER . iam 尝试使用UAE PHONE NUMBER从html 网页连接whatsapp the Html link was worked and redirected to WhatsApp. Html 链接已工作并重定向到 WhatsApp。 But Showing Error message is..但显示错误消息是..

"the phone number shared via url is invalid" “通过 url 共享的电话号码无效”

phone number is:- 509626914电话号码是:- 509626914

code代码

<a href="https://api.whatsapp.com/send?phone=971509626914&text=Can%20I%20know%20more%20about%20your%20service.." target='_blank' class="float">
   <i class="fa fa-whatsapp my-float"></i>
</a>

I have tested with my phone numer and is working, you can try to use the minimal address:我已经用我的电话号码进行了测试并且正在工作,您可以尝试使用最小地址:

Don't forget all rules about the phone number:不要忘记有关电话号码的所有规则:

+{country_code} {state_code} {number} +{country_code} {state_code} {number}

In Brazil, +55 48 9 1234 5678 must be 5548912345678在巴西,+55 48 9 1234 5678 必须是 5548912345678

https://wa.me/{phone_number}?text={message} https://wa.me/{phone_number}?text={message}

Solution 1解决方案 1

<a href="whatsapp://send?abid=phonenumber&text=Hello%2C%20World!">Send Message</a>

Solution 2解决方案 2

<a href="intent://send/phonenumber#Intent;scheme=smsto;package=com.whatsapp;action=android.intent.action.SENDTO;end">Send Message</a>

Solution 3解决方案 3

<a href="https://api.whatsapp.com/send?phone=15551234567">Send Message</a>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM