Added partial implementation for downloading documents, but Facebook gives a 404. How to fix?