Sometimes in excitement we post something that we should not on social media sites. And being friends with your boss on Facebook can directly put your job into the danger. These people didn't understand that their bosses also use Facebook and posted things that ended up ending them.
Be careful if you are about to post stuff like this. It's truly a bad idea.