Ashok
Ashok

Reputation: 5655

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

I'm working with Facebook sharing in my iOS app. 'quote' is missing while sharing via Facebook Native app, check the following screenshot:

enter image description here


But it is working fine when FBSDKShareDialogMode is feedBrowser. check the following screenshot:

enter image description here

What might be the issue? Is this feature is removed from Facebook recently? 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

Upvotes: 1

Views: 803

Answers (1)

Kushal Shrestha
Kushal Shrestha

Reputation: 805

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

Upvotes: 0

Related Questions