Former US president Donald Trump announces a third run for president as he speaks at Mar-a-Lago in Palm Beach, Fla., Nov 15, 2022. (REBECCA BLACKWELL / AP)

SAN FRANCISCO – Meta announced on Wednesday that the company would restore former US president Donald Trump's Facebook and Instagram accounts in the coming weeks, ending a two-year suspension.

"In the event that Mr Trump posts further violating content, the content will be removed and he will be suspended for between one month and two years, depending on the severity of the violation," wrote Nick Clegg, Meta's vice president of global affairs, in a blog post.

Donald Trump was recently reinstated on Twitter after Elon Musk took over the company

ALSO READ: FB, Twitter pull Trump posts over coronavirus misinformation

Meta issued updated rules this month that apply to public figures.

Facebook suspended Trump on Jan 7, 2021, after he continued posting content about the November 2020 election after protesters stormed the US Capitol.

"Today's decision by Meta is a pivotal moment in the debate over the best way to handle harmful content posted by politicians on social media," Meta's Oversight Board wrote in a blog post.

"Independent oversight of decisions related to speech on social media platforms is why the Board was set up — to ensure that companies act in a transparent and accountable manner," it noted.

"Such a thing should never again happen to a sitting President, or anybody else who is not deserving of retribution," Trump responded.

READ MORE: Trump signs social media order after Twitter fact-checks him

He was recently reinstated on Twitter after Elon Musk took over the company.