fix directory middleware parameter in facebook example app