Ejemplo n.º 1
0
def register_profile(sender, user, response, *args, **kwargs):
    try:
        user.copy_facebook(response)    
        facebook = Graph(user)    
        if settings.MANIFEST_FACEBOOK_FRIENDS:
            friends = user.copy_friends(facebook.get('friends'))
        if settings.MANIFEST_FACEBOOK_LIKES:
            likes = user.copy_likes(facebook.get('likes'))
    except:
        pass
Ejemplo n.º 2
0
def update_profile(sender, user, response, *args, **kwargs):
    try:
        user.copy_facebook(response)
        facebook = Graph(user)    
        if 'friends' in settings.MANIFEST_FACEBOOK_SYNC:
            friends = user.copy_friends(facebook.get('friends'))
        if 'likes' in settings.MANIFEST_FACEBOOK_SYNC:
            likes = user.copy_likes(facebook.get('likes'))
    except:
        pass