This is something clubs need to get a handle on. Social media is still a relatively new aspect to players lives. There should either be, as you say, contractual stipulations or training in the use of it.
Of course what has been levied at Balotelli is utterly disgraceful.