         }
     }
     
-    func setCurrent(given: T?) {
+    func setCurrent(_ given: T?) {
         log("Set current(\(self)): \(given)")
         current = given
         if let v = given {

        }
    }
    
    func logout(command: CDVInvokedUrlCommand) {
        fork {
            log("Logout now!")
            FBSDKLoginManager.init().logOut()

        }
    }
    
    fileprivate func permPublish(_ command: CDVInvokedUrlCommand, permissions: [String], finish: (() -> Void)? = nil) {
        FBSDKLoginManager.init().logIn(withPublishPermissions: permissions)  { (result: FBSDKLoginManagerLoginResult!, err: NSError!) -> Void in
            log("Result of logInWithPublishPermissions: \(result), Error: \(err)")
            if err != nil {
                self.finish_error(command, msg: String(err))
