Implementing Share Logic
In this guide, we'll walk you through how you can add a share option inside your experience so that the users can easily share that experience with their friends and followers on different platforms.
Share on Whatsapp
To share the experience on WhatsApp, add the following action to the click event: "Open URL https://api.whatsapp.com/send?text=". After the equals sign, paste the link to your published project. This will create a direct link to your project that the users can easily share with their friends on WhatsApp.
Add a Share Button
Once your project is published, the next step is to add a share button. This will allow others to easily share the experience with their own network. After adding the Share icon to the Artboard, select it and switch to the logic panel. From there, you can add a click event that will open a new URL when the share button is clicked.
Share on Twitter
Sharing your project on Twitter is just as easy. Under the click event, add action : “Open URL” and paste this link: "https://twitter.com/intent/tweet?url=". After that, paste the link to your published project. This will create a tweet with a link to your project that you can share with all your followers.