@facebook_authorization_required
@csrf_exempt
def notify_self(request):
    token_app = facepy.utils.get_application_access_token('APP_ID',
        'APP_SECRET_ID')
graph = GraphAPI(token_app)
graph.post(path='me/notifications', template='#Text of the notification',
    href='URL')
return HttpResponse(
    "<script type='text/javascript'>top.location.href = 'URL'</script>")
Create a facebook notification with Django package facepy : [15] (#15) This method must be called with an app access_token