NEW YORK -- The Facebook pages of the New York Yankees, Chicago Cubs and several other Major League Baseball clubs have been restored after briefly being hacked.

On the Yankees official news feed Thursday, there was a false item about Derek Jeter undergoing a sex change.

The Cubs' page contained an expletive directed at longtime Cubs fan and actor Bill Murray. The posts were removed shortly after appearing.

MLB released a statement saying "for a brief moment today, a few MLB Club Facebook accounts were hacked and inappropriate material was briefly on display."

The league also said it is working with Facebook and legal authorities to determine what happened.

The pages of the Miami Marlins, San Diego Padres, Washington Nationals, San Francisco Giants and Chicago White Sox were also hacked.