The IPO did not go as well as the social networking company had hoped, with shares closing just above the offering price of $38 a share after trading glitches and a last-minute, 25pc increase in the number of shares being sold.