TITLE: If a fixed point is a limit of a subsequence of iterates, must the whole sequence converge to it?
QUESTION [9 upvotes]: Say $X$ is a compact metric space, with $f:X \to X$ continuous. Now, for any $x_0$, $f^n(x_0)$ must have a convergent subsequence, say $f^{n_i}(x_0) \to x_\infty$. If we know that any such limit is a fixed point of $f$, that is, $f(x_\infty) = x_\infty$ for any such convergent subsequence, does it force the whole sequence $f^n(x_0)$ to converge to $x_\infty$?
If needed, we may  assume $f$ has only finitely many, and hence discrete fixed points.
I see that each translate of the subsequence ($f^{n_i+r}(x_0)$) converges to $x_\infty$, and this would have solved the problem if the differences between consecutive $n_i$ were bounded. Also, I'm pretty sure that this, combined with the fixed points being isolated, forces any convergent subsequence to have the same limit, but that doesn't seem to prove the result either.
Edited: I realized my wording was wrong on a crucial point, and since the sole existing answer was not perfectly correct, I decided to put in the change. Previously we only knew the limit to be a fixed point for one particular subsequence, now we now this for any convergent subsequence of iterates.

REPLY [4 votes]: The following has been edited to complete and improve it and to incorporate ideas from bryanj's comment. If I haven't made any terrible errors, it now proves that the set of accumulation points of $(f^n(x_0))$ will always be connected. It is likely that this argument can be simplified/generalized/strengthened in some fashion, and any suggestions for doing so will be appreciated and acted upon.
Fix $x_0$ and let $x_n = f^n(x_0)$ for each $n > 0$.
Let $A$ be the set of accumulation points of $(x_n)$.
Suppose for the sake of contradiction that $A$ is not connected.
By (ZF) Prove 'the set of all subsequential limits of a sequence in a metric space is closed. or similar, $A$ is closed in $X$.
Since $A$ is disconnected and closed, it is separated by closed, and hence compact, sets $C$ and $D$.
As a consequence of If $A$ is compact and $B$ is closed, show $d(A,B)$ is achieved or similar bog-standard results, there exists an $\epsilon > 0$ such that for all $x \in C$ and $y \in D$, $d(x,y) > 2\epsilon$.
Let $W_C$ be the union of all the open $\epsilon$-balls about elements of $C$ and define $W_D$ similarly. By the definition of accumulation point, $(x_n)$ is frequently in $W_C$ and frequently in $W_D$.
Suppose for the sake of contradiction that $\exists x \in W_C \cap W_D$. Then there must be $p\in C$ and $q\in D$ such that $d(x,p)<\epsilon$ and $d(x,q)<\epsilon$. By the triangle inequality, $d(p,q)<2\epsilon$, a contradiction. Thus we conclude that $W_C \cap W_D = \varnothing$.
Since $X$ is compact and $f$ is continuous, $f$ is uniformly continuous by the Heine-Cantor theorem. Thus there is a $\delta$ such that $0 < \delta < \epsilon$ such that for all $x,y \in X$, $d(x,y) < \delta \implies d(f(x),f(y)) < \epsilon$.
Let $U$ be the union of all the open $\delta$-balls about elements of $A$.
Then $(x_n)$ is eventually in $U$: if not, then there is a subsequence in $X\setminus U$, which is closed, hence compact, so there is an accumulation point in $X\setminus U$, a contradiction.
Let $N$ be such that $n \ge N \implies x_n\in U$.
Let $n > N$.
Since $\delta < \epsilon$, $x_n \in U \subseteq W_C \cup W_D$.
Assume without loss of generality that $x_n \in U \cap W_C$.
By the definition of $U$, there is an element $a \in A$ such that $d(x_n,a)<\delta<\epsilon$. Since $W_C$ and $W_D$ are disjoint, $x_n \notin W_D$, so $a \notin D$, so $a \in C$.
By the choice of $\delta$, $d(f(x_n),f(a))<\epsilon$. Thus $d(x_{n+1},a)<\epsilon$, so $x_{n+1} \in W_C$.
Thus we have shown that $(x_n)$ is eventually in $W_C$ and thus is not frequently in $W_D$, contradicting the fact that $W_D$ is an open set containing elements of $A$.
As this contradiction arose from the assumption that $A$ is disconnected, we conclude that $A$ is connected.