By definition, the wave function can be obtained by acting the position eigenstate to a state of the system, e.g., $\langle x\vert \psi \rangle$. For the wave function of an electron travelling in one-dimensional space, we can calculate the wave function of an electron by the way mentioned above, $\psi(x)=\langle x \vert \psi\rangle$. I'm okay with this.
Q1) However, what about the case of photon? Can we also define the wave function of photon in the same way above?
Q2) What about the following? Let consider a single photon state of light, which encoded to a left-propagating electromagnetic wave in one-dimensional space. Then, we place the infinite number of detectors along the space and then repeat the detection measurement for photon's position so many times at different times. Would what will be measured over space be almost same as the square of the wave function of photon, i.e., $\vert \psi(x)\vert^{2}=\vert \langle x\vert {\rm single~photon}\rangle\vert^{2}$? Can we say this way?
Q3) Would $\vert \psi(x)\vert^{2}$ in Q2 be equivalent to the electromagnetic wave?