The social media company said that lower-than-expected advertiser demand impacted both its Q2 performance and Q3 outlook.