The series of events involved in magnetoception in which a light stimulus is received and converted into a molecular signal. Downstream processing of the light information in addition to other sensory data allows organisms to perceive the orientation of a magnetic field.