Reputation: 5655
I'm working with Facebook sharing in my iOS app. 'quote' is missing while sharing via Facebook Native app, check the following screenshot:
But it is working fine when FBSDKShareDialogMode
is feedBrowser
. check the following screenshot:
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
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