A MAN did not realise sending Facebook messages was a breach of a ban on contacting his ex-girlfriend, Barnsley Magistrates' Court was told.
Lee Ryan Noble, 26, of Naylor Grove, Dodworth, and Katrina McHugh split up about a year ago but there were problems about babysitting, said Felicity Hemlin, prosecuting.
She said Noble sent Miss McHugh two messages on Facebook. One said: "I think it's for the best for both of us to cut all ties. Good luck in the future and be a good mum."
A second message sent later said: "Stop bugging my family to babysit."
Matthew Shepherd, defending, said Noble had apologised profusely for contacting Miss McHugh.
He said: "Difficulties have arisen recently because Miss McHugh kept asking Mr Noble's mother to babysit.
"There has been constant pestering about child care. Mr Noble did not realise sending Facebook messages was a breach of the ban on contacting Miss McHugh.
"He now realises the gravity of what he has done. It's so easy these says to write messages on Facebook and press the send button without thinking."
Noble admitted two breaches of a restraining order and will be sentenced on September 17. He was granted unconditional bail.