We propose a deterministic scheme for generation of highly entangled photon states using a high-Q two-mode optical cavity and the dark state evolution. Because of the adiabatic operation, our proposal is robust to ambient noise, and the relevant dynamics is insensitive to the randomness of moderate fluctuations regarding experimental parameters. Our scheme not only works deterministically, but also has the advantage of achieving highly entangled photons by adiabatically increasing or decreasing the Rabi frequencies regarding the classical driving pulses, which would be practical in real implementation. Our scheme can also be extended to generation of multiphoton entanglement.