London Escorts sunderland escorts 1v1.lol unblocked yohoho 76 https://www.symbaloo.com/mix/yohoho?lang=EN yohoho https://www.symbaloo.com/mix/agariounblockedpvp https://yohoho-io.app/ https://www.symbaloo.com/mix/agariounblockedschool1?lang=EN
1.1 C
New York
Monday, February 3, 2025

ios – Sharing reels from customized app works however instagram fails to complete importing them


I used https://builders.fb.com/weblog/submit/2023/10/12/sharing-to-reels-instagram-available-to-developers/?content_id=RPqmZdVrnkeJq63 their code to implement to my app. I’m able to load the reel into the instagram reel view and edit it and add title and hashtags. However once I faucet submit, it begins to add after which fails publishing it saying it was saved to drafts. However then I can submit it from drafts or manually from my pictures. Any concepts why is that this occurring? I really feel just like the pasteboard just isn’t sending some information to instagram or what.

func shareToInstagram(videoURL: URL) {
        let appIDString = "883xxxxx"
        let activity = URLSession.shared.dataTask(with: videoURL) { information, response, error in
            if let error = error {
                print("Error downloading video information: (error)")
                return
            }
            guard let backgroundVideoData = information else {
                print("Didn't obtain any information")
                return
            }
            DispatchQueue.predominant.async {
                self.backgroundVideo(backgroundVideoData: backgroundVideoData, appID: appIDString)
            }
        }
        activity.resume()
    }
    
    func backgroundVideo(backgroundVideoData: Knowledge, appID: String) {
        if let urlScheme = URL(string: "instagram-reels://share"), UIApplication.shared.canOpenURL(urlScheme) {
            let pasteboardItems: [[String: Any]] = [
                ["com.instagram.sharedSticker.backgroundVideo": backgroundVideoData],
                ["com.instagram.sharedSticker.appID": appID]
            ]
            let pasteboardOptions = [UIPasteboard.OptionsKey.expirationDate: Date().addingTimeInterval(60 * 5)]
            UIPasteboard.normal.setItems(pasteboardItems, choices: pasteboardOptions)
            UIApplication.shared.open(urlScheme)
        } else {
            print("Instagram app just isn't put in or the URL scheme just isn't supported")
        }
    }
}

The one factor I can consider what may trigger that is to do one thing with creating the app in meta developer portal to acquire the ID. However that is simply my guess which might be incorrect.

I drained completely different URL schemas and so forth however did not have a hit even preloading the video.

Related Articles

Social Media Auto Publish Powered By : XYZScripts.com