I'm working with Facebook sharing in my iOS app. I have tried searching the possibilities for tagging pages but found none. Is it possible to tag pages in Facebook sharing?
Sample Facebook pages that I'm trying to tag via Facebook SDK:
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