Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to share video on TikTok in iOS?

Tags:

swift

video

share

I have local and remote videos. I am implementing video sharing for Instagram, TikTok and other social networks. My application requires support iOS 12+.

For Instagram and TikTok the user should go directly to the selected app with the selected video for sharing from my application.

I am using schemes for Instagram (like "instagram://library?LocalIdentifier=someIdentifier"), UIActivityViewController for other social networks.

But I cannot find something for TikTok. I did not find any API for that. Also I tried to find some special scheme.

May be someone knows that is it possible or not?


UPD.

Tik Tok released iOS SDK.

Unfortunately, my watermarked videos are not allowed for sharing.

like image 468
Vladislav Markov Avatar asked Oct 16 '25 14:10

Vladislav Markov


2 Answers

My team lead helped me found the only solution.

It is a scheme for opening Tik Tok: snssdk1233://. I didn't found something better.

How you could implement it:

  1. Save the video to Photo Library.
  2. Show a message that the video is saved and the user can upload it to Tik Tok.
  3. Open Tik Tok:
guard let url = URL(string: "snssdk1233://") else { return }
UIApplication.shared.open(url, options: [:], completionHandler: nil)

Also there is a scheme musically://. It does the same as snssdk1233://. (Maybe there is a difference between them)

like image 126
Vladislav Markov Avatar answered Oct 19 '25 09:10

Vladislav Markov


The official answer is to use the SDK for iOS and Android: https://developers.tiktok.com/doc

like image 23
Steven Craft Avatar answered Oct 19 '25 10:10

Steven Craft



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!