Somsak Jeamthirasakul posted a message on his Facebook page on Wednesday at lunchtime saying that two men had opened fire on his car and home while he was inside the house with several neighbours. The attackers also threw bricks at the house, he said.
His post drew a range of responses from Facebook users, some of whom said he deserved it, and warned he could be subject to more attacks, while others expressed sympathy.
A Facebook user known as Hin Nang Sao Jamphen described Mr Somsak as a "bad man" and said: "You already have white hair but do not show gratitude to your homeland so the younger generation has to teach you”.
But another member of the social network, Lee Mok Chow, said: “Install a close-circuit TV camera, report it to the police and take legal action. In the past you suffered verbal attacks, which I know you can tolerate, but now your life is at risk so you have to be careful.”
Mr Somsak was last week accused of lese majeste in a case filed by the army regarding alleged inappropriate messages posted on his Facebook page.