I use the iOS SDK for Facebook for Swift to access Facebook, and I would like to work with FBGraphUser (or FBGraphPlace , FBGraphLocation ), and not with a clean Dictionary . The request completed successfully, but I can not transfer the result to FBProtocol
FBRequestConnection.startForMeWithCompletionHandler { (connection: FBRequestConnection!, result: AnyObject!, error: NSError!) -> Void in // this does not work if let fbGraphUser = result as? FBGraphUser { NSLog("\(fbGraphUser)") } // this works if let fbGraphUserDict = result as? Dictionary<String, AnyObject>{ println("\(fbGraphUserDict)") } }
How can I expand the options for getting FBxxxx objects?
amuses
source share