0

我收到了这个错误:

shareButton.shareContent = FBSDKShareLinkContent(contentURL:contentURL,
contentTitle: "My Share Title", 
contentDescription: "Lorem ipsum dolor sit amet.", 
imageURL: imageURL, 
peopleIDs: ["1561082740838259"], 
placeID: "166793820034304", 
ref: "myRefId")
4

1 回答 1

0

你必须contentURL像这样创建imageURL

let contentURL = NSURL(string: "https://www.facebook.com/FacebookDevelopers") 
let content = FBSDKShareLinkContent()
content.contentURL = contentURL
...

let imageURL = NSURL(string: "http://upload.wikimedia.org/wikipedia/commons/thumb/9/95/Facebook_Headquarters_Menlo_Park.jpg/2880px-Facebook_Headquarters_Menlo_Park.jpg")
shareButton.shareContent = FBSDKShareLinkContent(contentURL:contentURL, contentTitle ...
于 2017-03-15T19:06:40.480 回答