'Returns all profile models which are already registered on your site
and a list of friends which are not on your site'

def registered_friends(self, user):

    profile_class = get_profile_model()
    friends = self.get_friends(limit=1000)
    if friends:
        friend_ids = [f['id'] for f in friends]
        friend_objects = profile_class.objects.filter(facebook_id__in=friend_ids).select_related('user')
        registered_ids = [f.facebook_id for f in friend_objects]
        new_friends = [f for f in friends if (f['id'] not in registered_ids)]
    else:
        new_friends = []
        friend_objects = profile_class.objects.none()
    return (friend_objects, new_friends)
