I have the following code using Facebook's Swift API:
let displayName = user.displayName
print(displayName)
self.nameLabel.text = displayName
The displayname variable is printed correctly but when it reaches the last line, I get Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value
. But displayName has a value?