NEW YORK AP – Facebook is shutting down its much-maligned Beacon marketing program, launched nearly two years ago amid fanfare only to generate a storm of privacy complaints over the tracking of user activities at partner Web sites.

Facebook agreed to end Beacon and create a foundation to promote online privacy, safety and security as part of a $9.5 million settlement in a lawsuit over the program. A federal judge in California still must approve the terms.