code from the Mining the Social Web, 2nd Edition specifically for facebook