1

I am trying to share image with some text and a url from my app to Instagram which would later redirect to iOS app installed on the phone from Instagram app. I am able to share image on instagram but not with text and url. Any help related to the same would be great!

Preetika
  • 702
  • 8
  • 21
  • check on this link : https://stackoverflow.com/questions/11393071/how-to-share-an-image-on-instagram-in-ios/28272642#28272642 – Hardik Thakkar Jul 13 '18 at 09:18

3 Answers3

5

A Bit Late To Answer (Aug, 2022)

I have successfully cracked the plain text sharing on Instagram by myself, after doing a lot of research on google on this topic. You can use the mentioned deep link to open Instagram Direct with some text to share from your application,

instagram://sharesheet?text={AnyTextOrLinkToShare}

Moreover, the below code should work on iOS to launch Instagram Direct (Messenger) from your app with some content

if let url = URL(string: "instagram://sharesheet?text=https://google.com/") {
   UIApplication.shared.open(url, options: [:], completionHandler: nil)
}

Not sure, why did they hide this information from their official documentation but now who cares, I have achieved it with the continuous efforts of 16-18 hrs! :)

Arsal Imam
  • 2,882
  • 2
  • 24
  • 35
3

Instagram had removed pushing custom captions to their app while sharing photos at one point, check this post.

I also understand, according to the Instagram iPhone Hooks page, that you can pass a photo only to the "Select A Filter" Instagram screen, which is before you set a caption. I'm sorry, but I don't think Instagram supports custom captions.

Raghav
  • 470
  • 3
  • 13
0

Looks like there is not official way to share image/sticker together with a text/link to Instagram - because "com.instagram.sharedSticker.contentURL" parameter bacame unavailable or private.

But there is one workaround how to proceed working with image/sticker & text/url consequentially described here: https://stackoverflow.com/a/74241318/20343737

  • If you have a new question, please ask it by clicking the [Ask Question](https://stackoverflow.com/questions/ask) button. Include a link to this question if it helps provide context. - [From Review](/review/late-answers/33056221) – coturiv Nov 04 '22 at 09:45