GENEVA — The United Nations said Tuesday that it would soon resume food aid to Syrian refugees after a successful emergency appeal through social media, which brought an outpouring of financial support from thousands of people and a number of Middle Eastern and European governments.

The United Nations food aid agency, the World Food Program, had said at the start of December that a lack of money was forcing it to halt food support to nearly 1.7 million Syrian refugees in neighboring countries — a blow to both the refugees and their host communities, made more acute by the onset of winter.

However, a social media campaign with the hashtag “#ADollarALifeline” and Aloe Blacc’s song “I Need a Dollar” as a soundtrack had generated $80 million by Monday, which the World Food Program said would enable it to restart the support in mid-December.

Contributions came from almost 14,000 individuals and private-sector donors in 158 countries, who gave $1.8 million altogether, the agency reported. Americans, Canadians and Syrians topped the list of contributors.