How do I know if an image was actually shared on Instagram?

Asked

Viewed 107 times

0

I’m developing an app that shares an image from inside it to the Instagram, is in Ionic 3. In the plugin documentation Instagram for Ionic says that the function returns whether or not the image was shared, but in practice only get back the message "Share cancelled", even though the image is actually shared.

How do I get the return I desire?

Follows an excerpt from the function:

file.readAsDataURL(url, this.imgname).then(res => {

  this.insta.share(res, this.texto).then((data) => {
    alert("Data insta share>: " + JSON.stringify(data));

  }).catch( error => {
    alert("error : " + JSON.stringify(error));
  })

}).catch(err => {})

Instagram plugin link

  • The message : "Share cancelled" is displayed inside then or catch?

  • is displayed inside the catch

  • If you entered the catch is because it was not shared, whatever the reason was. You will only enter the then when it was successful

  • exact, but enters the catch even if the image is shared

  • Strange, I will try to play. Put the plugin link in the question, please.

  • ready, put on

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.