I am currently working on a Facebook app, and I need to do the following: Create a hash containing "key", "user" and "link" fields. The link field should contain a string, that is the address of a json file.
Now, my problem is the following: I gather data from facebook and store it in the json file. How create a file DIRECLTY on heroku, somehow like a folder, when an event is dispatched (for example the user clicks on a button), and put the URL into the hash on the link field? My location should probably look like .../[user]/myfile.json
Or, if not heroku, can you please suggest another host where I can do the same thing?
Note: I am just getting started with databases, I have only very basic knowledge of SQL, and the database is not done yet. I don't know anything about postgres, but I can learn, if it is preferred. My app is mainly developed with php.