I have done the below code to post an Image and a Text on Instagram
let fileURL = NSURL(fileURLWithPath: writePath)
self.documentController = UIDocumentInteractionController(URL: fileURL)
self.documentController.delegate = self
self.documentController.UTI = "com.instagram.exclusivegram"//"com.instagram.photo"
self.documentController.annotation = NSDictionary(object: strTitle as String, forKey: "InstagramCaption")
self.documentController.presentOpenInMenuFromRect(self.view.frame, inView: self.view, animated: true)
It's working fine in iOS 8.3 but the Caption is missing in iOS 9. Why is that and how can I fix it?
I had the same problem, and I have found out that it has been removed by Instagram on earlier August, 2015.
Instagram blog http://developers.instagram.com/post/125972775561/removing-pre-filled-captions-from-mobile-sharing
Just found out that Instagram removed this function in its new version
https://www.apichangelog.com/changes/c6542ec9-6e02-4352-8db4-6481a8af4039
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With