The nonlinear optomechanical coupling is an attracting characteristic in the field of optomechanics. However, the strength of single photon optomechanical coupling is still within weak coupling regime. Using the optomechanical coupling to achieve strong nonlinear interaction between photons is still a challenge. In this paper, we propose a scheme by employing optomechanical and spin-mechanical interactions to enhance the nonlinearity of photons. An effective Hamiltonian is derived, which shows that the self-Kerr and cross-Kerr nonlinearity strengths can be enhanced by adjusting the classical pumping or enhancing the spin-mechanical coupling strength. In addition, we investigate the potential usage of the nonlinearity in the photon blockade. We demonstrate that the single and two photon blockades can occur in two super modes.