A teacher in Whale Cove, Nunavut is grateful to the power of social media.

Andy McFarlane led an effort to raise money for local hockey players to go compete in Ontario. He needed $20,000, and now he's got it.

McFarlane says he went online to raise the money.

Andrew McFarlane

'It's a different story, and it gives somebody something to talk about,' says Andy McFarlane, a teacher working in Whale Cove, Nunavut. (Supplied)

A tweet from NHL star Theo Fleury — and a Toronto TV appearance — saw donations skyrocket earlier this week.

“Once people heard about it, it's a different story, and it gives somebody something to talk about,” McFarlane says. “I think that's basically what happened, and I think with social media, it became such a huge thing."

McFarlane says he's still surprised at how quickly the money poured in.

The trip is planned for March, to a small town in Northern Ontario called Geraldton, where McFarlane used to teach.

The Whale Cove players will play a series against the Geraldton high school team.

McFarlane says the Whale Cove roster still isn't set. That will depend on who keeps up with their school work.