First, I am not sure my solution should work, it seems like it should but I am not an expert.
I have an already written piece of code that extracts data from Facebook