Why Do I Keep On Receving A Message Via Facebook That My iPhone Is Infected With Virus? Here's The Fix.
Yes, it is a scam. To avoid getting any malware installed on your iPhone, close out of Safari immediately when you see a pop-up like this on the screen. To close Safari, double-press the Home button to open the App Switcher. Then, swipe up on Safari to close the app. You’ll know Safari is closed when it no longer appears in the App Switcher You should clear it out by going to Settings in the Facebook app (not phone settings) Settings -> Account Settings -> Browser -> Clear Data.
It will usually clear out that message including other texts like “You’ve won a free iPhone”. You can get these cookies from all sorts of links on Facebook and they are mostly designed to sell you software or gather sensitive data like credit card numbers. Lastly, that is the way an Apple message or notification would look.