#NEWLINE# def request( self , path , data = None , method = 'GET' ) : #NEWLINE# #INDENT# ' Convenience Facebook request function. \n\n        Utility function to request resources via the graph API, with the\n        format expected by Facebook.\n        ' #NEWLINE# url = ( '%s%s?access_token=%s' % ( 'https://graph.facebook.com' , path , self [ 'oauth_token' ] ) ) #NEWLINE# req = Request ( url , data = data ) #NEWLINE# req . get_method = ( lambda : method ) #NEWLINE# return loads ( urlopen ( req ) . read ( ) )