[英]'quote' is missing while sharing via Facebook Native app - iOS Facebook SDK
我正在使用iOS應用中的Facebook分享。 通過Facebook Native應用程序共享時缺少“ 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()`
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.