0
我試圖通過FBSDKShareLink
來分享FB上的鏈接,我正在提供一個動態網址到content.contentURL
以進行回調以打開我的應用。現在當我分享FB時,鏈接總是顯示fb.me
作爲內容標題和內容描述。任何人都可以指導我如何阻止這一點?使用FBSDKShareLink在Facebook上分享鏈接時停止fb.me作爲contentTitle?
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)