Fact 1: $f$ has a root. To see this, take $x \not = 0$ and $y = \frac{-2f(x)}{x}$.
Fact 2: If $f(c) = 0$, then $c = \pm\sqrt{f(0)}$. To see this, set $x=y=c$.
Fact 3: $f(0) = \pm 1$. To see this, let $c$ be a root and set $x=c, y=0$. Then, $f(cf(0)) = 0 \implies cf(0)=\pm\sqrt{f(0)}$ but $c = \pm\sqrt{f(0)}$.
Fact 4: $f(0) = 1$. If $f(0) = -1$, then $x=y=0$ gives $f(1) = -2$. Then $x=1,y=0$ gives $f(-1-(-2))=2(-2) = -4$, a contradiction.
Fact 5: $f(-1) = 2$ and $f(1) = 0$. The first equality follows from $x=0,y=0$. The second then comes from Fact 1, Fact 2, and $f(-1)\not = 0$.
Fact 6: $f(f(x)) = x$ for all $x \in \mathbb{R}$. This follows from setting $x=1$.
Fact 7: $f(-a) = 2a+f(a)$ for all $a \in \mathbb{R}$. This follows from $x=f(a),y=1$ and noting Fact 6 implies $f$ is surjective.
Fact 8: $f(-x-f(x)) = 2x+2f(x)$. This follows from $y=2$.
Fact 9: $f(-x-f(x)) = 2x+2f(x)+f(x+f(x))$. This follows from letting $a = x+f(x)$ in Fact 7.
Fact 10: $f(x) = -x+1$. This follows from Facts 8,9 , Fact 6 showing $f$ is injective, and Fact 5, which gives $f(1) = 0$.