SAN FRANCISCO — Facebook Inc. and plaintiffs attorneys have agreed to put $10 million into a fund for privacy foundations to settle a proposed class action over the site’s “Sponsored Stories” feature, according to court papers filed Thursday.

Plaintiffs alleged in the suit filed in San Jose federal court that the feature publicizes users’ images and names to advertise products without paying them or letting them opt out.