Social networking site Twitter confirmed Facebook and messenger Twitter accounts were hacked.
According to a British news agency Reuters, a Twitter spokeswoman said in an emailed statement that the accounts were hacked by third-party platforms.
"We closed the accounts as soon as we learned of this problem, and we are working with partners on Facebook to restore those accounts," Twitter said.
On the other hand, Facebook also confirmed that their official social media accounts were hacked yesterday.
"Some of our corporate accounts were hacked for a short time, but we saved them and restored access," said Facebook spokeswoman Joey Osborne.
It is understood that in August last year, hackers hacked the account of Jack Dorsey, co-founder and chief executive officer (CEO) of Twitter.
Jack Dorsey's Twitter account was hacked by a group called 'Chuckling Squad', after which he shared inappropriate tweets from Jack's account.
More than 4 million users are following Jack Dorsey's Twitter account, while he himself follows more than 4,000 accounts.
The hackers posted objectionable and provocative tweets on Jack Dorsey's account for about 15 minutes.
Earlier in June last year, Indian actor Amitabh Bachchan's Twitter account was hacked and the image of Prime Minister Imran Khan was posted and a message of love was also given to Pakistan.
Amitabh Bachchan's account was hacked by a hacker from Turkey.