A tweet from the McDonald's corporate account called President Trump "a disgusting excuse of a President" on Thursday morning, which the company said was the work of a hacker. 

The tweet, which was briefly pinned to the top of the account before being deleted, mocked Trump and called for the return of former President Obama. 

"@realDonaldTrump You are actually a disgusting excuse of a President and we would love to have @BarackObama back, also you have tiny hands," the tweet read.

McDonald's later said in a statement that the account was hacked and apologized.

"Based on our investigation, we have determined that our Twitter account was hacked by an external source. We took swift action to secure it, and we apologize this tweet was sent through our corporate McDonald’s account," spokeswoman Terri Hickey said.

Trump was once in a commercial for the fast food giant, and has posted images eating McDonald's food on his social media accounts during his campaign.

 

Celebrating 1237! #Trump2016

A post shared by Donald J. Trump (@realdonaldtrump) on May 26, 2016 at 2:29pm PDT

--This report was updated at 11:04 a.m.