Add share (contact) button for whatsapp and other messangers in website - javascript

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>

Related

WhatsApp Auto messaging

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.

What is the Facebook app ID?

I'm creating an online quiz website. I have everything setup and I am just working on the social buttons. At the end of the quiz, I want a share button to appear for Facebook and I want to customize the thumbnail and title and stuff like that based on the user's result.
To do this, I am trying to implement the Facebook Javascript SDK, but it needs an app ID. What is this and where do I get it?
You need to create an facebook app for yourself in facebook developer site.
After creating it, you can goto YourApp -> Settings
It will have an APP ID

How to make Whatsapp share box

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.

Embed page source code to website

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.

Embedding Facebook Connect In A Facebook Page

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().

Categories