0
我在facebook上分享預定義文本。我只需要分享文字而不是圖片或網址。但是得到這個錯誤。分享facebook上的內容
let content = FBSDKShareLinkContent()
content.quote = "test"
let shareDialog = FBSDKShareDialog()
shareDialog.fromViewController = self
shareDialog.shareContent = content
shareDialog.delegate = self
if !shareDialog.canShow() {
print("cannot show native share dialog")
}
shareDialog.show()
預填充文本正在工作,但如果我設置了url或圖像。 –
如果您嘗試共享純文本,但它不會共享其他內容,例如網址,圖片,視頻等,則該功能無效。 – dive
如果它以某種方式工作,則不允許預填充。 – luschn