I have been trying to upload/share videos on facebook since past two days.For that,I have tried to execute following code
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any])
let video : FBSDKShareVideo = FBSDKShareVideo()
video.videoURL = info[UIImagePickerControllerReferenceURL] as! URL!
let content : FBSDKShareVideoContent = FBSDKShareVideoContent()
content.video = video
FBSDKShareDialog.show(from:self, with:content, delegate: self )
picker.dismiss(animated: true, completion: nil)
This code enables sharing video on facebook but it takes too long to share that video on facebook and that doesn't appear correct to me .Is there any way to upload videos on facebook that takes least time and appears user friendly.Any kind of help in this direction would be highly appreciated .Thanks in advance!