Advertisers and other third parties had the potential to gain unauthorized access to many Facebook user accounts and profile information because of a software flaw, Symantec Corp. said Tuesday night.