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.
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.
So I have a webpage that autogenerate og:tags for link preview on facebook, whatsapp etc. but whatsapp apparently can't scrape them. It works good on facebook but not on whatsapp. In whatsapp it just gives me this error message (see pictures. only somtimes, the other times nothing shows up) like the site has an error (which it doesnt have, you can access the page like any other page).
The og:tags are also correct in the tag in the site's source code.
Does anyone know why it is like this?
Did you post these links in WhatsApp already at a time, when they did not have og-data? Then you can try to delete all that links in the WhatsApp-Group-Media/Link-List and repost. That works for me with a similar issue with og-data in WhatsApp.
I would like to know how to embed page source code to my personal website.
I want to show how many YouTube subscribers, Linkedin Followers, Instagram Followers etc. I have on my personal website (I'm using Squarespace).
If you go on a YouTube page, right click 'View page source' then search for the subscribers. Is there a way of extracting this code so it updates automatically on my website every time I get new subscribers.
It would be great if I could keep them all is the same style like I have on my homepage (I have just manually typed the numbers in for now) under my showreel.
http://www.tierney.tv/
Thanks in advance,
Michael
There is no way to just "embed" code and just display specific information of an account unless someone has created it as a plugin in the type of website you are using. You would have to create API access and requests. Here is the way to Authorize Requests. https://developers.google.com/youtube/v3/code_samples/javascript
Here with your Channel ID you can get a snippet to get your subscriber numbers.
https://developers.google.com/youtube/v3/code_samples/code_snippets
These widgets should be made and supported by respective companies/sites. They can also be found there with respective links to embed the widgets.
Ex - youtube, facebook, google maps have embed codes provided to embed their videos, posts, maps.
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>
so i have kind of a strange problem, I am in the process of building my own tweet button which is simple enough just using a link that resembles this <a href="https://twitter.com/intent/tweet?text=YOUR-TITLE&url=YOUR-URL&via=TWITTER-HANDLE">
now this as a link works just fine even with the dumby data prvided the problem is i would really like this page to open in an iframe on my site.. but twitter and other social networks have disabled this capability I am woundering if anyone know's a way i can use some sort of iframe or other tech including I assume an oauth and api which will alow me to send write, and display a tweet that the user can send inside my sight ?
as just using this returns an empty frame
<iframe src="http://twitter.com/intent/tweet?text=YOUR-TITLE&url=YOUR-URL&via=TWITTER-HANDLE">
</iframe>
anyhelp on how or even if I can do this or even a site I can check out that allows me as a user to do this would be greatly appreciated
(just a note I dont wish to tweet on a user behalf but rather display a pre defined text's tweet that enable the user to send without leaving my site or opening a new window )
Seems like it's against their terms of service. I'm researching the same issue now and it looks like you need to setup 0Auth to get an access token and then use the API. I'll report back when I have the full answer.