Share Instagram story from webapp

189 Views Asked by At

I'm trying to figure out how to copy an image to Instagram Stories, like the feature in Spotify. But in a webapp.

I'm executing this javascript before copying an image to clipboard:

const urlInstagram = 'instagram-stories://share' window.location.href = urlInstagram;

BlackImage

When it redirects to Instagram, asks the user if they want to allow copying from Safari, and then opens the story.

However, the image that is displayed is black.

Do you have any ideas for implementing this feature in a webapp?

Cheers.

I tried a lot of codes without lucky.

0

There are 0 best solutions below