People in Tonga could face several weeks without Facebook, YouTube and even some basic services like credit card transactions due to a fault in the undersea cable that connects the Pacific nation to the rest of the world.

Something went wrong with the fiber-optic cable on Sunday night. Initially it wiped out access to the internet almost entirely, and meant people couldn't even make international phone calls.

A small internet company that uses satellites has stepped in and helped restore international calls and some other services the government considers vital. But people still typically can't access social media sites such as Facebook and some businesses remain unable to process credit or debit cards.

Pesi Fonua, publisher of news website Matangi Tonga, said Wednesday it remains hard to read emails or view any pages on the internet.

"Everybody, of course, is having a very difficult time," he said. "It's just a damn nuisance at the moment."

Katie Silcock, general manager of Scenic Hotel Tonga, said it is unable to process card transactions in Tonga and is having to inform customers they need to pay in cash. She said they've had to take credit details from some customers for later payment, which she says is risky.

"It's making it pretty difficult to do business from an administrative point of view, and of course we can't offer internet to the guests," she said. "It's definitely causing some disruption."

She said most people in Tonga are taking the outage in stride, and have a philosophical attitude of "It will be fixed when it's fixed."

She said she has been told it will probably take two or three weeks to repair the cable.

Christian Patouraux, chief executive of Singapore-based internet company Kacific, said it remains unclear exactly what caused the outage.

"There is a cut on the cable, and they need to send a ship out there to repair that cut," he said. "Unfortunately, and this happens with many Pacific islands, there is only one cable and not enough budget for two cables. There's not enough population to support the right amount of redundancy."

Tonga has just over 100,000 people. It exports some agricultural goods but also relies on external aid and remittances from abroad.

Patouraux said his company was able to provide a customer in Tonga, EziNet, with extra bandwidth to service some of the nation's vital needs. He said the government was giving priority to critical services over things like social media, and that his company sent a team to install additional antennas at places like government departments and hospitals.

He said that before international calls were restored, his company was getting lots of people from abroad who were worried about their loved ones in Tonga writing messages on the website in an effort to communicate.

"The country is functioning normally internally, but it's still fairly cut off from the world," he said. "It's like the dark ages."