Facebook's quarterly profit and revenue blew past Wall Street estimates as the company's hugely popular mobile app and a push into video attracted new advertisers and encouraged existing ones to spend more.
Facebook shares rose 6.7% in after hours trading on Wednesday.
Mobile advertising revenue accounted for 84% of the company's total advertising revenue, compared with 76% a year earlier.
Total advertising revenue surged 63% to $6.24 billion, beating the average analyst estimate of $5.80 billion, according to market research firm FactSet StreetAccount.
Facebook is one of the biggest beneficiaries as advertisers move money away from TV to the Internet and mobile platforms. The company has been beefing up its presence in the mobile video market, where Snapchat and YouTube pose strong competition.
The company is also exhorting advertisers to experiment with Facebook Live, its recently launched live video product.
Facebook said about 1.71 billion people used the site monthly as of June 30, up from 1.49 billion a year earlier.
Excluding items, the company earned 97 cents per share. Analysts on average had expected a profit of 82 cents per share, according to Thomson Reuters I/B/E/S.
The net income attributable to Facebook's stockholders rose to $2.05 billion, or 71 cents per share, in the second quarter ended June 30, from $715 million, or 25 cents per share, a year earlier.
Total revenue rose 59.2% to $6.44 billion, compared with the estimate of $6.02 billion.
[findthebest id="6reAkmkyhqB" title="Facebook Inc. (FB) Stock Price - 1 Year" width="600" height="469" url="https://w.graphiq.com/w/6reAkmkyhqB" link="http://listings.findthecompany.com/l/14143267/Facebook-Inc-in-Menlo-Park-CA" link_text="Facebook Inc. (FB) Stock Price - 1 Year | FindTheCompany"]