The Facebook parent disclosed the layoffs in a memo sent to staff Thursday.