Scraping Facebook Pages and Groups code
shamelessly copied from https://github.com/minimaxir/facebook-page-post-scraper
for more in depth info please have a look at this article:
How to Scrape Data From Facebook Page Posts for Statistical Analysis