The Uruguayan pleaded guilty to a Football Association charge of using insulting and/or improper words.
The striker subsequently deleted the post and apologized when the meaning that could be attached was pointed out.
Along with the ban and fine, Cavani must also complete a “face-to-face” education programme.
Cavani’s ban will begin immediately, ruling him out of United’s Premier League game with Aston Villa.