Treat data from facebook.request

Hey guys,

I’m used to programming VBA for Excel and did a bit of C++ in the past, but I’m new to Corona and got this problem that I’m stuck with:

I’ve modified the facebook sample of Corona’s SDK and registered the app on Facebook developer website, so I am able to login to facebook via app and retrieve the user friends list using the ShowDialog function.

The problem is, now I want to get the user events instead of friends, and need it to be retrieved in a way that I can work with it in a CSV style or similar. So I thought to use the facebook.request function, but don’t know how to treat  the received data from this function, can anybody give me some help?

Thanks in advance.