We propose a potentially practical scheme to entangle two distant atomic Bose-Einstein condensates (BEC), which is respectively in an optical cavity. Due to interaction between the cavity and the atomic BEC and the cavity decay, a linear polarized single-photon, which inputs the cavity, will rotate a certain angle after the input-output process, which is called Faraday rotation. Thanks to the faraday rotation of the photonic polarization, through detecting the output photonic polarization, we will entangle two distant Bose-Einstein condensates and generate entangled coherent states. Therefore,...