How to Create a Whatsapp Share

Hello

I need create a sharebutton to whatsapp, instagram and facebook in dinamic pages.
how can I do this?

For FB sharing

Create button on your site with class “social-share-btn-fb” (you can use any other class), style it as you need and then on blogpost template page add embedded element. Inside embedded element add this code:

<a class="w-inline-block social-share-btn-fb" href="https://www.facebook.com/sharer/sharer.php?u=&t=" title="Share on Facebook" target="_blank" onclick="window.open('https://www.facebook.com/sharer/sharer.php?u=' + encodeURIComponent(document.URL) + '&t=' + encodeURIComponent(document.URL)); return false;"></a>

With Instagram and Watsapp I can’t help :confused: , didn’t meet code snippets yet.

It looks like you cannot share media on Instagram using the API. See the docs:

At this time, uploading via the API is not possible. We made a conscious choice not to add this for the following reasons:

Instagram is about your life on the go – we hope to encourage photos from within the app.
We want to fight spam & low quality photos. Once we allow uploading from other sources, it’s harder to control what comes into the Instagram ecosystem. All this being said, we’re working on ways to ensure users have a consistent and high-quality experience on our platform.

About Whatsapp: here is article, which probably can help

Hi, my better solution

the best solution was to use the add this, this facilitated any installation