The parent company of Facebook and Instagram has warned some 50,000 account holders they are targets of surveillance.