我必须将目标c代码转换为swift3.0,I';我在尝试联机转换时出错

我必须将目标c代码转换为swift3.0,I';我在尝试联机转换时出错,swift3,fbsdk,fbsdksharekit,Swift3,Fbsdk,Fbsdksharekit,我在线转换它时没有问题(编译器只抱怨我没有定义FBSDKShareLinkContent: NSURL *contentURL = [[NSURL alloc] initWithString: @"http://en.wikipedia.org/wiki/Facebook"]; NSURL *imageURL = [NSURL URLWithString:@"http://upload.wikimedia.org/wikipedia/commons/thumb/9/95/Facebook_He

我在线转换它时没有问题(编译器只抱怨我没有定义FBSDKShareLinkContent:

NSURL *contentURL = [[NSURL alloc] initWithString: @"http://en.wikipedia.org/wiki/Facebook"];

NSURL *imageURL = [NSURL URLWithString:@"http://upload.wikimedia.org/wikipedia/commons/thumb/9/95/Facebook_Headquarters_Menlo_Park.jpg/2880px-Facebook_Headquarters_Menlo_Park.jpg"];

button.shareContent = [[FBSDKShareLinkContent alloc]
                        initWithContentURL: contentURL
                              contentTitle: @"My Share Title"
                        contentDescription: @"Lorem ipsum dolor sit amet."
                                  imageURL: imageURL
                                 peopleIDs: @[@"1561082740838259"]
                                   placeID: @"166793820034304"
                                       ref: @"myRefId"];

我在注释中包含了一个指向在线转换器的链接(实际上我刚刚将其保留在其中,转换器添加了它!)

我收到了此错误…………无法使用类型为“(contentURL:URL?、contentTitle:String、contentDescription:String、imageURL:URL?、peopleId:[String]的参数列表调用类型为“FBSDKShareLinkContent”的初始值设定项,placeID:String,ref:String)“您正在向我显示您发送给FBSDKShareLinkContent的内容,但您没有告诉我它对参数的期望值。如果不是您的代码,CMD单击FBSDKShareLinkContent并将FBSDKShareLinkContent的标题定义复制并粘贴到上面的问题中。您的参数(包括其类型)必须完全匹配预期的参数。可能只需添加一些变量作为NSURL,也可能在其他地方存在不匹配的类型。会出现什么错误?您需要提供问题的更多详细信息。无法使用类型为的参数列表调用类型为“FBSDKShareLinkContent”的初始值设定项(contentURL:URL?、contentTitle:String、contentDescription:String、imageURL:URL?、PeopleId:[String]、placeID:String、ref:String)
func dummy(button: UIButton) {
    //  Converted with Swiftify v1.0.6276 - https://objectivec2swift.com/
    var contentURL = URL(string: "http://en.wikipedia.org/wiki/Facebook")
    var imageURL = URL(string: "http://upload.wikimedia.org/wikipedia/commons/thumb/9/95/Facebook_Headquarters_Menlo_Park.jpg/2880px-Facebook_Headquarters_Menlo_Park.jpg")
    button.shareContent = FBSDKShareLinkContent(contentURL: contentURL, contentTitle: "My Share Title", contentDescription: "Lorem ipsum dolor sit amet.", imageURL: imageURL, peopleIDs: ["1561082740838259"], placeID: "166793820034304", ref: "myRefId")

}