当用户点击自定义共享UIButton()时,我正试图在Facebook上分享视频。
let video = Video(url: videourl)
var content = VideoShareContent(video: video)
// If I am removing this line, its upload to Facebook.
content.placeId = "166793820034304" //Custom placeId
let sharer = GraphSharer(content: content)
sharer.failsOnInvalidData = false
do {
try sharer.share()
} catch let err {
print(err.localizedDescription)
}
sharer.completion = { FBresult in
switch FBresult {
case .failed(let error):
print(error)
break
case .success(_):
print("Uploaded")
break
default:
break
}
}
使用place / placeId在Facebook上分享视频的解决方案是什么?