简体   繁体   English

通过Facebook本机应用程序共享时缺少'quote'-iOS Facebook SDK

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

I'm working with Facebook sharing in my iOS app. 我正在使用iOS应用中的Facebook分享。 'quote' is missing while sharing via Facebook Native app, check the following screenshot: 通过Facebook Native应用程序共享时缺少“ quote”,请检查以下屏幕截图:

在此处输入图片说明


But it is working fine when FBSDKShareDialogMode is feedBrowser . 但是当FBSDKShareDialogModefeedBrowser时,它可以正常工作。 check the following screenshot: 检查以下屏幕截图:

在此处输入图片说明

What might be the issue? 可能是什么问题? Is this feature is removed from Facebook recently? 最近是否从Facebook删除了此功能? Below is my code: 下面是我的代码:

  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()

I'm using Xcode9.1 , Swift 3.2 , iOS 10.3.3 & iOS 11 , and FacebookSDK 4.19.0 我正在使用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