Let be the pullbacks of the two orientation classes. The cohomology ring of a product of two spheres has
and generates . Write
The matrix lies in because a homeomorphism induces a cohomology ring automorphism.
If is even, graded commutativity gives
Thus . Invertibility forces to be diagonal or anti-diagonal, and its two nonzero entries must each be . Hence there are exactly eight possible actions: the signed permutation matrices.
Evenness is necessary. For , the product is the torus, and every is induced by an integral linear automorphism of the torus. For example, the infinitely many matrices give distinct actions on .
Let . If , then , so
defines a continuous map on . Since , the integral general linear group contains as another integer matrix, and is the inverse of . Hence is a homeomorphism, and .
The map is the lift of fixing the origin. A loop whose lift ends at is sent to a loop whose lift ends at . Under the isomorphism in part (a), the induced map is therefore
This is precisely the integral linear automorphism of the torus associated with .