我正在尝试通过在 FB 上共享链接,FBSDKShareLink
并且我提供了一个动态 URL 以content.contentURL
供回调以打开我的应用程序。现在当我在 FB 上分享时,链接总是显示fb.me
为内容标题和内容描述。谁能指导我如何阻止这种情况?
let content: FBSDKShareLinkContent = FBSDKShareLinkContent()
let userInfo : AnyObject = LocalStore.userDetails()!
let iosLink = responseDictionary?["fb_link"] as? String
let name = userInfo["name"] as? String
content.contentURL = NSURL(string: iosLink!)!
content.contentTitle = "click it"
content.contentDescription = "My Custom Description"
content.imageURL = NSURL(string: "http://weknowyourdreams.com/images/dog/dog-07.jpg")!
FBSDKShareDialog.showFromViewController(self, withContent: content, delegate: self)