The correct way to write this sentence is;
Whom did you invite to the picnic?
Hope this helps. :)
9.4m questions
12.2m answers