A Frankston man in Victoria who narrowly avoided jail after an online party prank backfired has warned of the risks of misusing social media.

What the man thought would be a harmless Facebook hoax led to police intervention and the prospect of jail time and a criminal record when he was charged with stalking two years later.

Michael Davis.

''Don't mess around with that sort of stuff,'' the man, Michael Davis, said last week, having completed a four-month good behaviour bond as part of his punishment. ''It's just not worth it. It drags out and takes a massive toll on you.''

In 2010, when he was a teenager, Mr Davis used Facebook to advertise falsely that a party was being held at the home of a rival teen, who had been feuding with Mr Davis' friend over a girl. He created the Facebook event with an account he set up in the name of Tom Fletcher - frontman of the English pop band McFly, who was supposedly hosting the event.