As multiple posts here already have stated, I am facing the same issue.
The friend invite button literally does nothing.
I want to play a coop campaign and was overjoyed to see that BFGA2 was available on Xbox Gamepass.
Now I am disappointed that the game that is advertised with "coop" on the platform, does not feature any.
And honestly, having the button literally do nothing just reeks of laziness, sorry to say.
Some form of communication would be great, if there are actually any plans to fix this or if I should just give up on the game now.