iOS Swift - Share on Instagram with captions
Asked Answered
V

1

9

I am able to successfully share an image on Instagram using the UIDocumentInteractionController, but the InstagramCaption key won't work. This is my code:

self.controller = UIDocumentInteractionController()
// controller.delegate = self

self.controller.URL = fileUri

// HERE, the caption won't appear.
self.controller.annotation = NSDictionary(objectsAndKeys: "my caption", "InstagramCaption")

self.controller.UTI = "com.instagram.exclusivegram"
self.controller.presentOpenInMenuFromRect(CGRectZero, inView: self.view, animated: true)

What am I doing wrong?

Vitreous answered 10/8, 2015 at 22:3 Comment(0)
M
7

see question Instagram Caption not working

This feature has been removed from the iPhone hook

Moulton answered 11/8, 2015 at 10:26 Comment(1)
Yeah we were pretty surprised to. I think it's because they are preparing their ads api which will have some posting functionality, but at the moment its only available to ad partners according to the news reports I've seen on itMoulton

© 2022 - 2024 — McMap. All rights reserved.