@classmethod
def fromoauth2(cls, response):
    """Instantiate a new :class:`FacebookAccountPrincipal` from the OAuth2
        response received by Facebook.

        Args:
            response (:obj:`dict`): a dictionary holding the response data.

        Returns:
            :class:`FacebookAccountPrincipal`
        """
    return cls(response['id'])
