簡體   English   中英

通過Facebook本機應用程序共享時缺少'quote'-iOS Facebook SDK

[英]'quote' is missing while sharing via Facebook Native app - iOS Facebook SDK

我正在使用iOS應用中的Facebook分享。 通過Facebook Native應用程序共享時缺少“ quote”,請檢查以下屏幕截圖:

在此處輸入圖片說明


但是當FBSDKShareDialogModefeedBrowser時,它可以正常工作。 檢查以下屏幕截圖:

在此處輸入圖片說明

可能是什么問題? 最近是否從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.1Swift 3.2iOS 10.3.3iOS 11FacebookSDK 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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM