In most situations, web scraping is pretty straightforward. The algorithms involved are simple. (They're usually just a tree search of the html nodes.)
However, things get tricky when the webhost tries to hide their data behind an API. Facebook in particular tries to restrict access to their data, so that it's hard to get it programatically.
However, a tool I like to use in these situations, phantomjs, is essentially a normal web browser, just without a window. You can do everything a normal user can do with firefox, but through a script.
I believe I can simulate what you're describing and get the data you're looking for.