Tag: parsefacebookutils

parsingFacebook logInInBackgroundWithReadPermissions(Swift)

我已经成功设置了Parse(1.7.1)SDK和Facebook(v4)SDK,设置了桥接头文件和AppDelegate.swift。 现在在我的ViewController,我正在尝试创build一个Facebooklogin,我正在尝试使用“parsingiOS文档 – Facebook注册和login”中给出的代码。 PFFacebookUtils.logInInBackgroundWithReadPermissions(permissions, { (user: PFUser!, error: NSError!) -> Void in if let user = user { if user.isNew { println("User signed up and logged in through Facebook!") } else { println("User logged in through Facebook!") } } else { println("Uh oh. The user cancelled the Facebook login.") } }) 但是,当我把它粘贴在我的ViewController.swift> ViewDidLoad,我收到这个错误: – […]