working version of facebook extraction