Public posts on Facebook and Instagram were used to train Meta’s new artificial intelligence bot, leading to concern among some experts about how secure user data will be.