We propose two schemes of entanglement swapping of atomic states confined in cavities QED useful for quantum computation and quantum communication via a photonic Faraday rotation. They employ a source of linearly-polarized photon, a single photodetector, a quarter-wave plate, and three or four cavities, respectively.