ticket:2 Changed logic of authentication with facebook.