Two of the biggest titans in the tech world feuded on social media Friday over the best way to help the homeless, an increasing population in large cities across America.

Salesforce founder Marc Benioff tweeted his support for a November ballot initiative, Proposition C, that would tax San Francisco's largest businesses to raise as much as $300 million a year to support programs for the homeless.

"Homelessness is all of our responsibility ... ," Benioff tweeted.

Salesforce chairman and CEO Marc Benioff speaks during the Fortune Global Forum in San Francisco on November 3, 2015. Justin Sullivan / Getty Images

Twitter CEO Jack Dorsey responded that he's on the same page, but Proposition C isn't the best way to address the problem. He said he put his faith in Mayor London Breed, who was elected to tackle homelessness.

"I want to help fix the homeless problem in SF and California," he tweeted. "I don’t believe this (Prop C) is the best way to do it."

That's where things got salty.

Homelessness is all of our responsibility which is why we are supporting Prop C @OurHomeSF. Together, as one San Francisco, we can take on our city’s most complex & difficult problems. As SF’s largest employer we recognize we are part of the solution. https://t.co/TOVCC1zPZG — Marc Benioff (@Benioff) October 9, 2018

Benioff, who on Monday pledged $2 million in campaign funds for the initiative, asked Dorsey what he's contributed to efforts to alleviate homelessness, including the $37 million Hamilton Families Heading Home Campaign in San Francisco, which Benioff helped start two years ago.

"Which homeless programs in our city are you supporting?" the Salesforce chief tweeted.

Dorsey, who's also a billionaire on paper, deflected, saying Benioff was "distracting" from the point of his original response.

The upshot is that both men say they're friends who saw each other at a basketball game recently.

Jack Dorsey speaks during The New York Times 2017 DealBook Conference at Jazz at Lincoln Center in New York on November 9, 2017. Michael Cohen / Getty Images for The New York Times

Proposition C would tax big companies in San Francisco, like Twitter and Salesforce, to help provide shelter for the estimated 7,500 homeless people in the city.

Benioff says the measure would provide housing for 5,000.

"Marc and I talked on the phone," Dorsey tweeted after Friday's exchange. " Also talked with Mayor London this afternoon. We’re all talking now and aligned to fix this issue as fast as we can. Will keep everyone updated."