updated to handle multiple pages of friends