Slide 14
Slide 14 text
Let’s do it
@IBAction func post(sender: AnyObject) {
let documentsPath = "\(NSHomeDirectory())/Documents"
let videoUrl =
NSURL(fileURLWithPath: "\(documentsPath)/video.mp4")
let video = FBSDKShareVideo(videoURL: videoUrl)
let content = FBSDKShareVideoContent()
content.video = video
FBSDKShareDialog.showFromViewController(self,
withContent: content,
delegate: self)
}