}
} else if (statusCode == HttpStatus.BAD_REQUEST) {
if (message.contains("Unknown path components")) {
throw new ResourceNotFoundException(FACEBOOK, message);
} else if (message.equals("An access token is required to request this resource.")) {
throw new MissingAuthorizationException(FACEBOOK);
} else if (message.equals("An active access token must be used to query information about the current user.")) {
throw new MissingAuthorizationException(FACEBOOK);
} else if (message.startsWith("Error validating access token")) {
handleInvalidAccessToken(message);
} else if (message.equals("Invalid access token signature.")) { // Access token that fails signature validation
throw new InvalidAuthorizationException(FACEBOOK, message);
} else if (message.contains("Application does not have the capability to make this API call.") || message.contains("App must be on whitelist")) {