Police in Munich are investigating a Facebook message which may have been posted by the Munich gunman to lure people into a McDonald’s branch before he opened fire.

Ali, an 18-year-old who killed nine people in and around the Olympia Einkaufzentrum (OEZ) shopping centre on Friday is thought to have shared the message before the attack, inviting friends to come to the fast food chain at four pm on Friday to receive free food.

Munich police investigator Robert Heimberger said it appeared that the shooter had hacked the Facebook account of a young woman.

Munich gunman I am German

The Facebook post, identified by local media outlets, said: “come today to the Maccy's at 16 o'clock at OEZ I'll buy you something but nothing too expensive”.

Mr Heimberger said: “It appears it was prepared by the suspect and then sent out.”

The woman reported that her account had been hacked shortly afterwards.

Munich police revealed they were examining the post during a press conference in the wake of the shooting.

Munich police president Hubertus Andrae said in response: “As to whether this may be connected with the crime we have to investigate that.

”At the moment it's simply impossible to say. It is one part of the rather comprehensive investigation that we are conducting with the federal police forces.“

Nine people were killed and 16 wounded by the lone gunman, named locally as Ali David Sonboly, who later shot himself dead nearby.

The teenager opened fire inside the McDonald’s branch at around 5.50pm before continuing to shoot outside the restaurant and inside the OEZ mall.