That's a very good point. But freedom of speech does not mean freedom from consequences. While you're allowed to say (and post online) what you wish, there are sometimes consequences.
As for censorship (on Facebook, Twitter, etc.), they have every right to do so. You can post whatever you wish, but since these are private companies, not the government, they can do whatever they wish.