#NEWLINE# def facebook_profile( open_graph_share ) : #NEWLINE# #INDENT# '\n    Nicely displayed version of the facebook user\n    with user id and image and link to facebook :)\n    ' #NEWLINE# user = open_graph_share . user #NEWLINE# profile = get_profile ( user ) #NEWLINE# facebook_id = profile . facebook_id #NEWLINE# facebook_url = ( 'http://www.facebook.com/%s/' % facebook_id ) #NEWLINE# link = ( '<p><a href="%s"><img src="http://graph.facebook.com/%s/picture/?type=large" width="100px" style="float:left"/>%s</a><br/></p>' % ( facebook_url , facebook_id , open_graph_share ) ) #NEWLINE# return link