【问题标题】:FBwebdialogs, not showing on ios sdk - swiftFBwebdialogs,未在 ios sdk 上显示 - swift
【发布时间】:2015-01-30 04:15:05
【问题描述】:

其他人收到此错误:

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")
                    }
                }

不太清楚为什么会这样。任何帮助是极大的赞赏!谢谢所以

【问题讨论】:

标签: ios swift facebook-c#-sdk facebook-ios-sdk fbwebdialogs


【解决方案1】:

在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"]

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-03-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多