def require_persistent_graph(request, *args, **kwargs):
 kwargs['raise_'] = True
 graph = get_persistent_graph(request, *args, **kwargs)
 if (not graph):
  raise OpenFacebookException('please authenticate')
 return graph

def require_persistent_graph ( request , * args , ** kwargs ) : kwargs [ 'raise_' ] = True graph = get_persistent_graph ( request , * args , ** kwargs ) if ( not graph ) : raise OpenFacebookException ( 'please authenticate' ) return graph
just like get_persistent graph .