FBwebdialogs,未显示在ios sdk上-swift
收到此错误的任何其他人:FBwebdialogs,未显示在ios sdk上-swift,ios,swift,facebook-c#-sdk,facebook-ios-sdk,fbwebdialogs,Ios,Swift,Facebook C# Sdk,Facebook Ios Sdk,Fbwebdialogs,收到此错误的任何其他人: Error Domain=WebKitErrorDomain Code=101 "The operation couldn’t be completed. (WebKitErrorDomain error 101.)" 使用时: FBWebDialogs.presentDialogModallyWithSession(nil, dialog: "Share this", parameters: ["Sharing Tutorial": "name", "Build G
Error Domain=WebKitErrorDomain Code=101 "The operation couldn’t be completed. (WebKitErrorDomain error 101.)"
使用时:
FBWebDialogs.presentDialogModallyWithSession(nil, dialog: "Share this", parameters: ["Sharing Tutorial": "name", "Build Great app": "Caption", "Users to share": "description", "http://google.ca":"link", "http://i.forbesimg.com/media/lists/companies/google_416x416.jpg": "picture"], handler: {
result, resultURL, error in
if (error != nil){
println("error publishing \(error.description)")
} else {
if (result == FBWebDialogResult.DialogNotCompleted){
println("user cancelled")
} else {
println("very good job")
}
}
我不太清楚为什么会这样。非常感谢您的帮助!谢谢,在swift中,钥匙不是先到吗?因此,您的参数字典是向后的
["name": "Sharing Tutorial", "caption": "Build Great app", "description": "Users to share", "link": "http://google.ca", "picture": "http://i.forbesimg.com/media/lists/companies/google_416x416.jpg"]
错误显示存在无法处理的无效url