@facebook_required
def decorator_example(request, graph):
 if graph:
  return HttpResponse('authorized')
 else:
  return HttpResponse('user denied or error')

@ facebook_required def decorator_example ( request , graph ) : if graph : return HttpResponse ( 'authorized' ) else : return HttpResponse ( 'user denied or error' )
redirects the user to facebooks oauth dialog if the permissions requested in scope are not present default is facebook_default_scope .