Hackers have targeted Facebook CEO Mark Zuckerberg's social media accounts, briefly hijacking his LinkedIn, Twitter and Pinterest accounts.

Endgadget reported Sunday that the accounts were quickly restored. Hackers describing themselves as ‘OurMine Team’ changed the title of Zuckerberg’s Pinterest page to “Hacked by OurMine Team” and posted a message saying “Hey, we are just testing your security.” The hackers also posted a link to the @_OurMine_ Twitter account, which has now been suspended.

A Twitter account that Zuckerberg has not used since 2012 was also hacked.

Related: Someone hacked Katy Perry's Twitter to send out NSFW tweets and shout-out Taylor Swift

“The affected accounts have been re-secured using best practices,” a Facebook spokesman told FoxNews.com, via email, adding that none of the Facebook’s systems or accounts were accessed.

“We were alerted of this takeover attempt and have taken action to remove the false profile on LinkedIn,” a LinkedIn spokesman told FoxNews.com, via email.

Twitter did not comment on the specific details of the Zuckerberg hack when contacted by FoxNews.com, but urged users to mainatain strong passwords. "A number of other online services have seen millions of passwords stolen in the past several weeks," a Twitter spokesman told FoxNews.com, via email. "We recommend people use a unique, strong password for Twitter."

Related: Hacker looks to sell 117M LinkedIn passwords from 2012 data breach

Pinterest has not yet responded to a request for comment on this story.

TechCrunch reports that Zuckerberg’s Instagram account was also targeted, but says that security systems prevented hackers from accessing the account. Instagram, which is owned by Facebook, has not yet responded to a request for comment from FoxNews.com.

The Facebook co-founder is the latest high-profile figure to fall victim to hackers. Last month Katy Perry’s Twitter account was hacked and used by someone to send out a series of unsavory tweets.

Related: Teen hacks into North Korean Facebook using the password 'Password'

In a now-deleted tweet on Zuckerberg’s Twitter account, OurMine team said it got Zuckerberg’s password from the 2012 LinkedIn data breach. The hackers also claimed that Zuckerberg used an incredibly weak password, according to media reports.

Last month a hacker was reportedly looking to sell a package containing account records for 167 million LinkedIn users on the darknet, which were related to the 2012 data breach. LinkedIn said that it was moving quickly to deal with the release of data, which could include 117 million passwords.

The darknet refers to private networks built from connections between trusted peers using unconventional protocols. Darknets are just one part of what is known as deep web – a vast network which is not indexed by search engines such as Google and Bing.

Follow James Rogers on Twitter @jamesjrogers