Since then, the company has scrambled to appease lawmakers by promising to hire more than 1,000 people to manually review political ad purchases and to make the funding of those ads public.
âThe foreign interference we saw was reprehensible,â Colin Stretch, Facebookâs general counsel, told senators.
The companies also acknowledged they were struggling to keep up with the threat of foreign interference.
âThe abuse of our platform to attempt state-sponsored manipulation of elections is a new challenge for us â and one that we are determined to meet,â Twitterâs acting general counsel, Sean Edgett, said.
At the heart of the companiesâ problems are business models that reward viral content â which can include misinformation â and an enormous advertising business that is automated and unable to easily spot ads purchased by foreign governments.
In a sign of the shifting political winds for tech giants, Republicans, who have been more restrained in their criticism of the companies, were more skeptical on Tuesday. In one contentious exchange, Senator John Kennedy, Republican of Louisiana, pressed Mr. Stretch on whether Facebook could possibly police all of its advertisers.
âIâm trying to get us down from La-La Land here,â Mr. Kennedy said. âThe truth of the matter is, you have five million advertisers that change every month. Every minute. Probably every second. You donât have the ability to know who every one of those advertisers is, do you?â
Mr. Stretch acknowledged that Facebook could not track all of those advertisers.
Senator Lindsey Graham, Republican of South Carolina, the chairman of the crime and terrorism subcommittee that held the hearing, said the risk went beyond Russia to other American adversaries. Talking to reporters afterward, he alluded to potential regulation of political advertising online.
âItâs Russia today; it could be Iran and North Korea tomorrow,â he said. âWe need to do is sit down and find ways to bring some of the controls we have on over-the-air broadcast to social media to protect the consumer.â
Facebook, Twitter and Google have not publicly opposed a bipartisan proposal to require reports on who funds political ads online, similar to rules for broadcast television. In private, their lobbyists have praised voluntary efforts to disclose political ad funding and have resisted many aspects of the bill.
Senator Amy Klobuchar, Democrat of Minnesota, said the legislation was essential before the midterm elections in 2018.
âOur midterms are 370 days away, and we donât have time to mess around with dialogue anymore,â Ms. Klobuchar said in an interview after the hearing. Ms. Klobuchar introduced the bill with Senator Mark Warner, Democrat of Virginia, and Senator John McCain, Republican of Arizona.
During the hearing, some Republicans also sought to play down the Russian effort to tip the election in favor of President Trump, stressing incorrectly that the Kremlinâs agents did not favor a particular presidential candidate in last yearâs election.
âRussia does not have loyalty to a political party in the United States,â said Senator Charles E. Grassley, the Republican chairman of the Judiciary Committee. âTheir goal is to divide us and discredit our democracy.â
That assertion was at odds with the conclusion of American intelligence agencies that President Vladimir V. Putin of Russia tried to sway the election in favor of Mr. Trump, going beyond just posting disruptive content on social media. Russian operatives also hacked Democratic email accounts and released messages embarrassing to Hillary Clintonâs campaign.
Mr. Graham asked Mr. Stretch, Facebookâs general counsel, to confirm that the pattern of activity Facebook saw from Russia was more focused on sowing chaos in the United States than in bolstering Mr. Trumpâs candidacy.
âDuring the election, they were trying to create discord between Americans, most of it directed against Clinton,â Mr. Graham said, addressing Mr. Stretch. âAfter the election, you saw Russian-tied groups and organizations trying to undermine President Trumpâs legitimacy. Is that what you saw on Facebook?â
Mr. Stretch agreed. But the question was narrowly tailored, apparently intended to distance the broader Russian interference from the backing of Mr. Trump.
Though the companies made promises to work with government officials, Mr. Stretch stopped short of agreeing to some suggestions.
In one heated exchange, Senator Al Franken, Democrat of Minnesota, asked him to reject political ad purchases in foreign currencies.
âHow did Facebook, which prides itself on being able to process billions of data points and instantly transform them in the personal connections with its user, somehow not make the connection that electoral ads, paid for in rubles, were coming from Russia?â Mr. Franken said.
But Mr. Stretch hemmed, saying the rejection of a foreign currency to buy political ads would not solve the problem of foreign interference.
âThe reason Iâm hesitating on foreign currency is itâs relatively easy for bad actors to switch currencies,â Mr. Stretch said. âSo itâs a signal, but not enough.â
That response failed to satisfy Mr. Franken, who interrupted with exasperation.
âMy goal is for you to think through this stuff a little bit better,â Mr. Franken said, raising his voice.
This week, the companies admitted that the abuse of their platforms was much greater than previously acknowledged. In addition to Facebookâs admission, Google said that agents who were also from the Kremlin-linked Internet Research Agency uploaded more than 1,000 videos on its YouTube platform. Twitter said the Russian agency published more 131,000 messages on Twitter.
On Wednesday, the top lawyers for all three companies will appear before the House and Senate intelligence committees, which are conducting their own investigations into the Russian election meddling.
Tuesdayâs hearing exposed a much deeper struggle for Facebook, which is trying to tread a delicate line as a technology platform while also fighting against hate speech, violence and misinformation on its site.
âI like that they are contrite, but these issues are existential they arenât taking any structural changes,â said Tim Wu, a professor of law at Columbia University. âThese are Band-Aids.â