Handle multiple pages of friends

Updated to handle multiple pages of friends.