Added compability with Facebook SDK 2.0.