Facebook on Wednesday posted quarterly earnings and revenue that blew away analyst estimates, easily crushing Wall Street's predictions for its ad business.

The social media behemoth posted earnings of 97 cents per share, adjusted, on revenues of $6.44 billion in revenue in the second fiscal quarter. Analysts had expected 82 cents per share on revenues of $6.02 billion, according to a Thomson Reuters consensus estimate.