Facebook will continue to invest in new technology, despite rising costs