In this paper, we study the dynamical characteristics of magnons generated by the static magnetic dipole-dipole interaction and the external-laser induced dipole-dipole interaction in spin chain within an optical lattice. Specially, we choose a blue-detuned optical lattice and define an effective temperature for the system. We make a comparison between the generation process of magnons and that of photons in an optical vibration cavity. The results show that by suitably choosing the system parameters, the dynamical Casimir effect at finite temperature in the magnon system can be reproduced.