private void handleInvalidAccessToken(String message) {
if (message.contains("Session has expired at unix time")) {
throw new ExpiredAuthorizationException("facebook");
} else if (message.contains("The session has been invalidated because the user has changed the password.")) {
throw new RevokedAuthorizationException("facebook", message);
} else if (message.contains("The session is invalid because the user logged out.")) {
throw new RevokedAuthorizationException("facebook", message);
} else if (message.contains("The session was invalidated explicitly using an API call.")) {
throw new RevokedAuthorizationException("facebook", message);
} else if (message.contains("Session does not match current stored session.")) {
throw new RevokedAuthorizationException("facebook", message);
} else {
throw new InvalidAuthorizationException("facebook", message);
}
}