I\'m working with the Facebook Objective-C SDK in Swift and I\'m trying to compare an FBSessionState value with a value from the enum. However I get the compiler error:
Adding to Nikolai Nagorny's answer, this is what worked for me:
if (device.deviceType.value == TYPE_BLUETOOTHNA.value)