Facebook had allowed apps to access users personal info and that of their friends. News that one gave it to a voter targeting firm has renewed concerns over user privacy.