Facebook owner Meta is preparing to lay off thousands of employees as a result of global economic problems.