我在我的iOS应用程序中使用Facebook共享。通过Facebook Native app分享时,“quote”缺失,请查看以下屏幕截图:
但是当FBSDKShareDialogMode
是feedBrowser
时,它运作良好。检查以下屏幕截图:
可能是什么问题?这个功能最近是从Facebook删除的吗?以下是我的代码:
let content = FBSDKShareLinkContent()
content.contentURL = URL(string: "https://www.google.co.in/")
content.hashtag = FBSDKHashtag(string: "#FeelingGood")
content.quote = "Sample Quote"
let dialog = FBSDKShareDialog()
dialog.fromViewController = self
dialog.shareContent = content
dialog.delegate = self
dialog.mode = FBSDKShareDialogMode.native
if !dialog.canShow() {
dialog.mode = FBSDKShareDialogMode.automatic
}
dialog.show()
我正在使用Xcode9.1,Swift 3.2,iOS 10.3.3和iOS 11以及FacebookSDK 4.19.0
let content = FBSDKShareLinkContent()
content.contentURL = URL(string: "https://www.google.co.in/")
content.hashtag = FBSDKHashtag(string: "#FeelingGood")
content.quote = "Sample Quote"
let dialog = FBSDKShareDialog()
dialog.fromViewController = self
dialog.shareContent = content
dialog.delegate = self
dialog.mode = FBSDKShareDialogMode.shareSheet
if !dialog.canShow() {
dialog.mode = FBSDKShareDialogMode.automatic
}
dialog.show()`