A three-year-old was diagnosed with a rare eye disease after her mother posted a picture of her on Facebook.