fixed the middleware import of facebook graph library