def facebook_profile(open_graph_share):
 user = open_graph_share.user
 profile = get_profile(user)
 facebook_id = profile.facebook_id
 facebook_url = ('http://www.facebook.com/%s/' % facebook_id)
 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, facebook_id))
 return link

def facebook_profile ( open_graph_share ) : user = open_graph_share . user profile = get_profile ( user ) facebook_id = profile . facebook_id facebook_url = ( 'http://www.facebook.com/%s/' % facebook_id ) 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 , facebook_id ) ) return link
nicely displayed version of the facebook user with user id and image and link to facebook :) .