Mark Zuckerberg, chief executive officer and founder of Facebook, holds his phone after the morning session at the Allen & Co. Media and Technology Conference in Sun Valley, Idaho, July 13, 2018.

To be clear, insiders sold in compliance with what's known as Securities and Exchange Commission Rule 10b5-1, a preapproved selling mechanism that is completely legal. And there is no evidence to suggest they were acting on inside information about the disastrous quarter that sent Facebook's stock down nearly 20% Thursday.

In the second quarter, top executives sold 13.6 million shares, up from 8.3 million in the first quarter, and roughly triple the amount they sold in the last quarter of 2017, according to data from InsiderScore.com.

Last quarter as Facebook struggled with data leaks and fake news scandals, insiders at the company were selling more stock than they typically do.

Three years ago, Zuckerberg announced in a Facebook post he would sell 99% of his shares to fund philanthropic efforts. In a September SEC filing, Zuckerberg outlined plans to sell $6 billion in Facebook stock over the next 18 months to fund the Chan-Zuckerberg Initiative.

Of those 13.6 million shares sold by executives, the vast majority were offloaded by the company's founder and CEO, Mark Zuckerberg. According to the data , he dumped 13 million shares in the second quarter, double what he sold in the first quarter of the year and 10 times what he sold in the fourth quarter of last year.

The company reported second-quarter results Wednesday that missed Wall Street expectations and sent the stock tumbling after the market closed. The social media giant's market cap plummeted by $119 billion as its stock price fell by 19%.

Facebook declined to comment on the stock sales.

Rule 10b5-1 lets insiders of a publicly traded company set up a predetermined trading plan to sell the company's stock in regular intervals in a compliant way with the Securities and Exchange Commission to avoid insider trading.

Ahead of earnings, Zuckerberg sold hundreds of thousands of shares at roughly $30 above where they were trading Thursday. The CEO sold 240,000 shares during market hours Wednesday, July 25, the same day the company reported earnings, and 524,000 shares a day earlier, according to the InsiderScore.com data, which is based on SEC filings.

The company's top lawyer, Colin Stretch, who announced this week he is leaving the company at the end of the year, was also among the top sellers last week and offloaded $157,000 worth of stock. Chief Operating Officer Sheryl Sandberg sold $11.5 million worth, while Christopher Cox, chief product officer, sold $2 million worth.

"You have something that's an outlier here," said James Cox, professor at Duke University School of Law. "It happened to be a very bad quarter that they had — it doesn't wear well."

Other experts pointed out that the selling in the 10b5-1 format would have been an independent investment decision, made by a third party or trustee or scheduled algorithm. In this case, based on the Cambridge Analytica scandal, University of North Carolina at Chapel Hill School of Law professor Thomas Lee Hazen said if nothing else this was "prudent" investing, and a good time to sell.

"Unless there was something suspect about the plan, and I doubt there was, the sales are not that surprising," Hazen said. "With the stock rising, the smart thing to do would have been to sell the stock before it took an eventual earning hit."

John Coffee, professor of law and director of the Center on Corporate Governance at Columbia Law School, said not all sales pursuant to Rule 10b5-1 are lawful, "although the exceptions are modest." He underlined Zuckerberg's estimated $80 billion net worth.

Selling Facebook stock wouldn't make much of a dent, especially when most of it is not going in his own pocket.

"It would not be worth the legal risk," Coffee said.

These plans can be used to sell for valid reasons such as for gifts to charity or taxes. However, Coffee noted typically tax-related selling spikes in the fourth quarter.

But some experts say these stock-selling plans have evolved into a legal way to "game" the system.

"People with good lawyers, and I presume Facebook executives can afford good lawyers, do a good job of gaming the 10b5-1 plans," said Cox, who specializes in securities law. "It was never supposed to be a license for systematic trading."