You shouldn't post online just to get attention.
John was offered a large signing bonus with his new job.
John wants to share his good fortune.
John posts to his friend and family group that he got his dream job.
John posts a public message on his Facebook page with a picture of his offer letter.
John's friends and family congratulate him on his new job.
His new company rescinds their offer because John violated their privacy rules.