Facebook co-founder Dustin Moskovitz has given $20million to Hillary Clinton's presidential campaign

Facebook co-founder Dustin Moskovitz has given $20million to Hillary Clinton's presidential campaign – despite saying that rich people shouldn't 'influence elections.'

The billionaire says he is donating to help defeat Donald Trump, calling the Republican presidential candidate divisive and dangerous.

He also slammed Trump's appeals to Americans who feel left behind as 'quite possibly a deliberate con.'

By contrast, he believes that the Democrats and their nominee, Hillary Clinton, are 'running on a vision of optimism, pragmatism, inclusiveness and mutual benefit.'

Moskovitz wrote about the contributions in a Thursday night posting on the website Medium.

'As a nation, we need to figure out how to bring everyone with us, and we believe the Democratic platform currently is more aligned with ensuring that happens,' he wrote.

The billionaire says he is donating to help defeat Donald Trump (pictured) calling the Republican presidential candidate divisive and dangerous

'In comparison, Donald Trump's promises to this group are quite possibly a deliberate con, an attempt to rally energy and support without the ability or intention to deliver.

'His proposals are so implausible that the nation is forced to worry that his interest in the presidency might not even extend beyond winning a contest and promoting his personal brand.'

'If Donald Trump wins, the country will fall backward, and become more isolated from the global community,' he continued.

'This decision was not easy, particularly because we have reservations about anyone using large amounts of money to influence elections,' Moskovitz added.

'That said, we believe in trying to do as much good as we can, which in this case means using the tools available to us (as they are also available to the opposition).'

Moskovitz believes the Democrats and their nominee, Hillary Clinton, are 'running on a vision of optimism, pragmatism, inclusiveness and mutual benefit'

Moskovitz said he and his wife, Cari Tuna, are giving half of their $20 million to the League of Conservation Voters and to the For Our Future political action committee.

The latter group is a get-out-the-vote effort in battleground states that is paid for primarily by labor unions and hedge fund billionaire Tom Steyer.

Moskovitz and Tuna also are giving directly to Clinton's campaign and to party committees helping Senate and congressional Democrats, he said.

Moskovitz's political giving makes him the second-largest Democratic contributor of the election, after Steyer.

Mark Zucherberg founded fwd.us, a group that advocates immigration reform

But he is not the only Facebook founder to get involved in politics.

Mark Zucherberg founded fwd.us, a group that advocates immigration reform, changes to the US education system to improve science and technology education.

On its website, it slams Trump's 'inhumane and enormously expensive' plan to deport 11million undocumented migrants.