def _add_current_user_id(graph, user):
 if graph:
  graph.current_user_id = None
  if user.is_authenticated():
   profile = try_get_profile(user)
   facebook_id = get_user_attribute(user, profile, 'facebook_id')
   if facebook_id:
    graph.current_user_id = facebook_id

def _add_current_user_id ( graph , user ) : if graph : graph . current_user_id = None if user . is_authenticated ( ) : profile = try_get_profile ( user ) facebook_id = get_user_attribute ( user , profile , 'facebook_id' ) if facebook_id : graph . current_user_id = facebook_id
set the current user id .