A shocking message reading "One like = one dead Muslim" was posted from the ruling party's account, which was hacked at 2.00 a.m. local time.
The party took a hold of the control of the account at 9:30 a.m. local time (0700GMT), the statement said.
The hackers also wrote that Swedish Prime Minister Stefan Lofven has resigned and joined the army as a lieutenant.
In addition, a message reading "sale of drugs is free" was also posted by hackers.
"The messages have nothing to do with us and we will file a criminal complaint," said the party's spokesman Asa Soderen.