Electromagnetic and gravitational interactions are similar - they are mediated by massless particles, they have infinite range and they diminish with $1/r^2$. The main difference is that gravity is always attractive while electromagnetic force is not.
A photon intermediating electromagnetic force has spin 1 while graviton should have spin 2. What is a reason for different spin values of photon and graviton?