I followed a tutorial in creating a welcome screen with ParseUI and included its provided Facebook button. The simulator now logs into Facebook, but does not create a PFUser in my Parse App Database. There is an extra code for this that I know I need to add (pasted below), but I don't know where, since I don't have an Outlet for the ParseUI Facebook button, or any function that i know is called when this button is clicked.
PFFacebookUtils.logInInBackgroundWithReadPermissions("public_profile") {
(user: PFUser?, error: NSError?) -> Void in
if let user = user {
if user.isNew {
print("User signed up and logged in through Facebook!")
} else {
print("User logged in through Facebook!")
}
} else {
print("Uh oh. The user cancelled the Facebook login.")
}
}