You are on the right track.
Have you installed your pList?
You need to add your VC, add the login button, discuss with the delegate, and then process the FB information. Something like (but not quite):
class yourVC: UIViewController, FBSDKLoginButtonDelegate, UITextFieldDelegate { var loginView : FBSDKLoginButton = FBSDKLoginButton() viewDidLoad() { loginView.frame = CGRectMake(20, 20, theWidth-40, 40) self.view.addSubview(loginView) loginView.readPermissions = ["public_profile", "email", "user_friends","user_birthday"] loginView.delegate = self } func loginButton(loginButton: FBSDKLoginButton!, didCompleteWithResult result: FBSDKLoginManagerLoginResult!, error: NSError!) { if ((error) != nil) { //handle error } else { returnUserData() } } func returnUserData() { let graphRequest : FBSDKGraphRequest = FBSDKGraphRequest(graphPath: "me", parameters: ["fields":"id,interested_in,gender,birthday,email,age_range,name,picture.width(480).height(480)"]) graphRequest.startWithCompletionHandler({ (connection, result, error) -> Void in if ((error) != nil) { // Process error print("Error: \(error)") } else { print("fetched user: \(result)") let id : NSString = result.valueForKey("id") as! String print("User ID is: \(id)") //etc... } }) }
You will need to play returnData() with the returnData() part so that everything is correct, but this code should get you 90% of how it is.
I have included a wide range of permissions (user age, interest, etc.), but you will have to configure them yourself. Honestly, this part (the difficult part) is really similar to it with the C object, which is much better documented. Just download some of the projects in which he works, and try to parse them together into something that matches your imagination.
It may be hard to get all this to work, but let it go and go on!