Facebook's social media accounts were temporarily taken over by hacking group OurMine on Friday.
The hacking group posted on Twitter and Instagram accounts for Facebook and Messenger, writing "even Facebook is hackable", reports BBC.
The accounts have now been restored now.
A Twitter spokesperson confirmed the matter and said in an emailed statement that the accounts were hacked through a third-party platform, reports Reuters.
"As soon as we were made aware of the issue, we locked the compromised accounts and are working closely with our partners at Facebook to restore them," the Twitter spokesperson said.
Separately, Facebook also confirmed that some of its official social media accounts were hacked on Friday.
"Some of our corporate social accounts were briefly hacked but we have secured and restored access," Facebook spokesman Joe Osborne said.
The account of Twitter Inc Chief Executive Jack Dorsey was hacked in August, allowing an unauthorized person to send public tweets including racial slurs and curse words to his 4 million followers before Twitter secured the account.