def update_connection(request, graph):
 converter = get_instance_for('user_conversion', graph)
 user = _connect_user(request, converter, overwrite=False)
 _update_likes_and_friends(request, user, converter)
 _update_access_token(user, graph)
 return user

def update_connection ( request , graph ) : converter = get_instance_for ( 'user_conversion' , graph ) user = _connect_user ( request , converter , overwrite = False ) _update_likes_and_friends ( request , user , converter ) _update_access_token ( user , graph ) return user
a special purpose view for updating the connection with an existing user - updates the access token - sets the facebook_id if nothing is specified - stores friends and likes if possible .