$S^{-1}B$ and $T^{-1}B$ isomorphic for $T=f(S)$
Injectivity. Let $\frac{r_1}{s_1},\frac{r_2}{s_2}\in S^{-1}B$, and suppose that \begin{align*} \phi\left(\frac{r_1}{s_1}\right)&=\phi\left(\frac{r_2}{s_2}\right) \\ \frac{r_1}{f(s_1)}&=\frac{r_2}{f(s_2)} \end{align*} So $\exists$ $t\in T$ such that \begin{equation*} t\left(f(s_2)r_1-f(s_1)r_2\right)=0 \end{equation*} Since $t\in T=f(S)$, $\exists$ $s\in S$ such that $f(s)=t$, and \begin{align*} f(s)\left(f(s_2)r_1-f(s_1)r_2\right)&=0 \end{align*} Since $B$ is an $A$ module via $f$ \begin{equation*} s\cdot (s_2\cdot r_1-s_1\cdot r_2)=0 \end{equation*} and thus $\frac{r_1}{s_1}=\frac{r_2}{s_2}$. So $\operatorname{ker}(\phi)=0$.