Assume $g=f\circ f$. If $x$ is a fixed point of $g$, then so is $f(x)$, for $g(f(x))=f(f(f(x)))=f(g(x))=f(x)$. Likewise, if $x$ is a fixed point of $g\circ g$, then so is $f(x)$ as well as $g(x)$. Now if $x_1,x_2$ are the fixed points of $g$ and $x_3,x_4$ the "extra" fixed points of $g\circ g$, we conclude that $f$ permutes $S':=\{x_1,x_2,x_3,x_4\}$.
By the observations above, we have $f(x_1)\in\{x_1,x_2\}$, $f(x_2)\in\{x_1,x_2\}$, $f(x_3)\in\{x_3,x_4\}$, $f(x_4)\in\{x_3,x_4\}$. Consequently $f$ has order $1$ or $2$ (as permutation of $S'$). But then $g$ is the identity on $S'$, i.e. $x_{3}, x_4$ are also fixed points of $g$.