public void UpdateFriendsListForPlayer(EntityManager em, Player player,
			ArrayList<Long> friendIDs, ArrayList<String> friendNames,
			ArrayList<String> friendImageURLs) {
		// Since it's not that much data, and for simplicity sake we're just
		// going to clear
		// the FriendsList for the user (if they had one stored) and rebuild it.
		// This is needed since people add and remove friends on Facebook all
		// the time.
		player.setFriendList(null);
		em.persist(player);

		// Now we rebuild the friends list with our info that was originally
		// passed into the POST command
		User friendUser;
		long friendID;
		String friendName;
		String friendImageURL;
		ArrayList<Long> newFriendList = new ArrayList<Long>();

		for (int i = 0; i < friendIDs.size(); i++) {
			friendID = friendIDs.get(i);
			friendName = friendNames.get(i);
			friendImageURL = friendImageURLs.get(i);

			friendUser = getUserByFacebookID(em, friendID);
			if (null == friendUser) {
				// NEW USER - System has never seen this Facebook user before.
				// We must add the user before they can be added as a friend to
				// this player.
				System.out
						.println("New User needed to be added to the system. - "
								+ friendID
								+ ", "
								+ friendName
								+ ", "
								+ friendImageURL);
				User user = new User(friendID, friendName, friendImageURL);
				em.persist(user);
				friendUser = user;
			}

			// Now that we're sure we have this friend as a User in our system,
			// update the Players Friendlist.
			newFriendList.add(friendID);
		}

		player.setFriendList(newFriendList);
		em.persist(player);
	}