First, let me confirm your answer. The table given below shows a summary of optimised structures of $\ce{XOOX}$ compounds; experimental data when available is in parentheses. As a reference the bond length in $\ce{O2}$ is $121\ \mathrm{pm}$.
Here you can clearly see that $\ce{O2F2}$ has the shortest $\ce{O-O}$ bond length of the three compounds in consideration in the original question. In fact, the fact that it is so close to $\ce{O=O}$ bond length in the dioxygen is suggestive of high double bond character between the two oxygen atoms in dioxygen difluoride. Here's another table summarising the bond order calculations:
Let's study the MO diagram proposed in the paper I am using as a reference for this answer.
Here, the orbitals of this $C_2$ system have been generated by considering
the interaction of the frontier orbitals of $\ce{X ... X}$ with those of
the $\ce{O2}$ molecule. In the case of $\ce{H...H}$, they are simply the
a + b combinations of the $1s$ functions, and for the halogens they are a combination of their valence p functions.
Thus, 1a is derived from the $2p \sigma_g$ function of $\ce{O2}$ and is
$\ce{X–O–O–X}$ bonding. Similarly, $1b$ and $2a$ come from the $2p\pi_u$ functions of $\ce{O2}$.
The higher electronegativity of fluorine and bromine leads to better interaction with the quite low lying $\ce{2p\pi_u}$ orbitals. In this scheme, we also note that the energies of 1b and 2a in these $\ce{XOOX}$ molecules decrease with the electronegativity of X.
The orbitals $2b$ and $3a$ derive from the bonding overlap
of $\ce{X...X}$ functions with the $\ce{O2}$ $2p\pi_g$ orbitals.
Now, addressing the 2b and 3a functions in $\ce{FOOF}$, we note that they are similar to those in $\ce{HOOH}$. However, the high electronegativity of fluorine results in transfer of electron density from oxygen and considerable stabilisation of this $\ce{O–O}$ anti-bonding function.
The 3b and 4a functions in FOOF and BrOOBr are halogen based, non-bonding ‘lone pairs’. The higher electronegativity of fluorine, as outlined above, leads to greater bonding interaction between the $\ce{F}$ $2p$ and $\ce{O2}$ and $2p \pi_u$ functions resulting in the low energy of $2a$ and $1b$.
It similarly leads to the relatively low energy of the corresponding anti-bonding functions which are $4b$ and $5a$ in $\ce{FOOF}$. These are $\ce{F–O}$ anti-bonding but $\ce{O–O}$ bonding. These are the highest occupied orbitals in $\ce{FOOF}$ with the result that the $\ce{F–O}$ bond order is considerably reduced at the cost of the $\ce{O–O}$ bond.
In $\ce{FOOF}$ there is effectively a 4-orbital, 8-electron interaction
between the p orbitals of $\ce{F...F}$ and the $2p\pi_u$ functions
of $\ce{O2}$ resulting in weak $\ce{F–O}$ bonds and little net transfer of
charge.
This repulsive interaction is responsible for the long $\ce{F–O}$ bond. There is some bonding interaction with the $2p\sigma_g$ and $2p\pi_g$ functions of $\ce{O2}$. The latter results in a $\ce{O -> F}$ charge transfer and a degree of strengthening of the $\ce{O–O}$ bonds.
In the resonance scheme proposed below, I would, based on this, call attention to resonance form 3.
Anyway, I have made an attempt to summarise the salient features of the discussing in the paper cited below in the reference section. The effects that I have called attention to here, are significant for fluorine but considerably weaker for chlorine, bromine etcetera.
Reference:
1] Bonding in mixed halogen and hydrogen peroxides, Adam J. Bridgeman and Joanne Rothery, J. Chem. Soc., Dalton Trans., 1999, 4077-4082 (link)