Sharing a image to booth instagram feed and stories
You can either directly copy [ShareInstagram.swift] into your project or you can use CocoaPods:
pod 'ShareInstagram'
let share = ShareInstagram()
share.postToStories(image: image, backgroundTopColorHex: backgroundTopColor, backgroundBottomColorHex: backgroundBottomColor, deepLink: "https://www.[yourdeeplink].com")
- Swift 5
- Xcode 11.0+
Fabricio Oliveira | (https://www.linkedin.com/in/fabricio-eustaquio/)
Feel free to collaborate with ideas 💭, issues
The license is provided in the project folder. This is based on the new share documentation provided by facebook to developers: https://developers.facebook.com/docs/instagram/sharing-to-stories#ios-developers
Your deep link will only work if you ask permission to instagram. You can do it here: https://help.instagram.com/contact/605050879855497
May 2018 - Brazil