#NEWLINE# def update_profile_from_graph( self , request , access , token , profile ) : #NEWLINE# #INDENT# user_data = self . fetch_user_data ( request , access , token ) #NEWLINE# for ( k , v ) in user_data . items ( ) : #NEWLINE# #INDENT# if ( ( k != 'id' ) and hasattr ( profile , k ) ) : #NEWLINE# #INDENT# setattr ( profile , k , v ) #NEWLINE# logger . debug ( ( 'DefaultFacebookCallback.update_profile_from_graph: updating profile %s to %s' % ( k , v ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# return profile