A man who turned up at a train station to meet a child he believed he had been speaking to over Facebook has kept his freedom.