I am searching for twitter share image and video in iOS 13. I tried this one but "SLServiceTypeTwitter" is deprecated in iOS 11.
SLComposeViewController *tweetSheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];
[tweetSheet addImage:[UIImage imageNamed:@"twitter.png"]];
[tweetSheet setCompletionHandler:^(SLComposeViewControllerResult result) {
}];
[self presentViewController:tweetSheet animated:YES completion:Nil];
Other way I find to share using API. https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/api-reference/post-media-upload Which needs user authorization.
Please suggest me which is the best way to share image and videos.
or is there any way to just open twitter app with image and video share if app is installed in the device.