Is there any way to send message to group using HTMl or JS
whatsapp
I tried doing with this but it didn't work.
I think there is only option to contact single person through this format:
WhatsApp for obvious reasons does not allow you to automatically send a whatsapp message. What you can do is use a https://wa.me link to start the whatsapp application with share message dialog where your user can select who to share the message with:
whatsapp
It will open a share dialog like this (disregard the red box, I took the image from Google to demonstrate).
Also when you click this link, it will try to open the mobile app first. But if your user is on a desktop, it will try to open the Whatsapp Web interface.
Related
we can send text using html a tag with the following code
Hello, world!
or
Hello, World!
now If I want to send a Image attachment , how can do that?
U can't. The closest to it would be to send a link in the message that has a image preview, but that's not that usefull. I'm guessing this wouldn't even be possible to add in whatsapp because to access a user file like an image I believe this has to be done with a direct user interaction (like manually selecting the image), but not by clicking a link, just by doing that whatsapp can't get the image from user storage.
I guess it would be like this if you are trying to create an image which acts like a link
<img src="myCoolImage.png" width="500" height="500">
Use WhatsApp Business API. You must create an app on Facebook developer panel (https://developers.facebook.com) and add WhatsApp as a product. Then configure api settings and add WhatsApp api web hooks in order to receive replies etc. Configurations on your app or website will depend on what kind of messages(e.g images, audio) you want to send to ur customers.
I have to provide a hyperlink in email (this will be sent via Gmail) which will open FB Messenger by default with some default message text in all platforms (Android, iOS, Web). I did not find anything regarding that but FB provides an option share a URL in Messenger as hyperlink.
https://developers.facebook.com/docs/sharing/messenger
<a href=”fb-messenger://share/?link= https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2Fsharing%2Freference%2Fsend-dialog&app_id=123456789”>Send In Messenger</a>
But this also did not work. Gmail is not sending the text "Send In Messenger" as a hyperlink but sending it as plain text.
Can you tell me how can I do that?
Working on a new website, with an option to share the page: I made the Facebook share with image and title description etc...
Now I want to make a Whatsapp share too, but when I look in Whatsapp API I see only text mention.
But I see places that do make share box on whatsapp...
Here some image example I found in google images:
Please help me understand how to define this and make a href button of it
Thanks!
There is no official Whatsapp API you could use for sending messages from a PC. The only "API" Whatsapp provides is the sharing API for mobile phones and the whatsapp:// protocol - which does only work on clients having Whatsapp installed.
Using that whatsapp:// protocol, you can send a message containing text-only.
Whatsapp will automatically resolve contained URLs and display image and title according to the screenshot you linked.
Taking a look at the example at crunchify, they do exactly the same thing.
$whatsappURL = 'whatsapp://send?text='.$crunchifyTitle . ' ' . $crunchifyURL;
What will result in exactly the output contained in your screenshot.
How can I add a share button on the page of my site, we can add send SMS on mobile HTML pages with this code :
title
And how can use this sample in share, such as Viber, Watsapp and etc
Html pages only. I normally use AddThis for all my sharing as it comes with stats and its free.
whatsapp has its own api. they use something like this
href="whatsapp://send" data-text="visit our website:".
Better to research the api of the platforms you want to share to
Whatsapp all has some script to embed in your page which generates the button but you can add a custom button also.
More info: Sharing with whatsapp
the answer i find it for whatsapp is :
<a href="whatsapp://send?text=... >Whatsapp</a>
Our site allows users to register using Facebook Connect. We also have a Facebook page. We'd like to include the "Connect with Facebook" button in our page so a user could instantly connect (aka register) and then be forwarded on to their account on our site.
I was hoping to use the Static FBML page application and the FBML iFrame tag to simply embed the button but it looks like the iFrame tag isn't allowed in Facebook pages. Facebook Connect uses JavaScript so I'm wondering if there is some kind of trick I could use like popping up a page in a new window that would automatically display the connect dialog box.
Any ideas on how I would include a Facebook Connect button on our Facebook page would awesome!
Thanks in advance for your help.
I think the best method would just be a link back to your site (you could even use the Facebook Connect image as the link) to a custom page that triggers the FB.connect javascript that's needed.
Check here for info about FB.connect.requireSession().