【发布时间】:2017-01-26 12:24:44
【问题描述】:
我正在寻找一种在 Facebook 上分享我的应用程序视频的方法。 我将 SDK 安装到 facebook 并按照说明操作,但我不明白为什么我不能分享我的视频。
let fbVideo:FBSDKShareVideo = FBSDKShareVideo()
fbVideo.videoURL = url
let content: FBSDKShareVideoContent = FBSDKShareVideoContent()
content.video = fbVideo
FBSDKShareDialog.showFromViewController(self, withContent: content, delegate: self)
我的参数委托有一个错误:
Cannot convert value of type 'ShareViewController' to expected argument type 'FBSDKSharingDelegate!'
请注意,我在我的班级 ShareViewController。
没有其他方法可以在 facebook 上分享视频吗?谢谢
【问题讨论】:
标签: ios swift facebook facebook-graph-api facebook-sdk-4.0