Better error handling of facebook connect