Two masked bandits robbed the wrong home hours after a teenager posted a photo on Facebook of a large pile of her grandmother's savings.

Police in New South Wales, Australia, said that the men, armed with a club and a knife, struck at the home of the 17-year-old's mother in the country town of Bundanoon on Thursday night, but were told the daughter no longer lived there.

The bandits searched the house and took a small amount of cash as well as other property before leaving. No one was injured.

Police said that earlier in the day the girl had posted a picture on her Facebook page of a "large sum of cash" she had helped count at her 72-year-old grandmother's home in Sydney, 75 miles north-east of Bundanoon.