An analytical model of the spin-diode effect induced by resonant spin-transfer torque in a ferromagnetic bilayer with strong dipolar coupling provides the resonance frequencies and the lineshapes of the magnetic field spectra obtained under field or laser-light modulation. The effect of laser irradiation is accounted for by introducing the temperature dependence of the saturation magnetization and anisotropy, as well as thermal spin-transfer torques. The predictions of the model are compared with experimental data obtained with single Co/Cu/Co spin valves, embedded in nanowires and produced by electrodeposition. Temperature modulation provides excellent signal-to-noise ratio. High temperature-modulation frequency is possible because these nanostructures have a very small heat capacity and are only weakly heat-sunk. The two forms of modulation give rise to qualitative differences in the spectra that are accounted for by the model. 76.50.+g, 75.47.De