Earlier quoted context omitted.
Correct me where I'm wrong but did it not used to be the case that facebook apps could access almost as much info about your friends as they could about you? So where is the consent? Fred gives consent to run a personality quiz and its associated data gathering - Fred's 180 friends didn't.
That consent is contained in the TOS that you and all of your friends agreed to when you signed up for Facebook. Further, the access to friend data has always been more limited than you imply here, and more recently, it’s become so limited that using apps for data collection about friends is almost a pointless endeavor.
Perhaps the very best thing that could come out of this is an end to the longstanding legal fig leaf of lengthy, complex legal documents presented as click-through agreements somehow constituting "informed consent."