This is not really an answer, just a few remarks:
If I understand the assignment correctly, you want to have an "integral formula" such that, given $f: S^3\to S^2$, the formula would returns $\varphi [f]$, where $\varphi: \pi_3(S^2)\to\mathbb{Z}$ is a given isomorphism. Is it right?
I doubt that there can be such formula; on an oriented $3$-manifold, you naturally integrate $3$-forms and I don't see a way how to convert an $S^2$-valued map to something like that. Moreover, I would be even more sceptical if you wanted a general formula for identifying any homotopy class $\pi_k(S^n)$ by integration, because the problem is complicated and unlikely reducible to simple formulas.
However, in your case, if you can identify the preimage $f^{-1}(y)$ for some regular value $y\in S^2$ such that $T_y S^2\simeq \langle v_1, v_2\rangle$ -- the preimage $f^{-1}(y)$ is a disjoint union of topological circles -- and compute, for each $x\in f^{-1}(y)$, the vectors $f^*(v_i)$ in the normal space $N_x S^3$ that are mapped by $f_*$ to $v_i$ -- then the number you are looking for is the sum of "how many times the frame $(f^*(v_1), f^*(v_2))$ winds around, if you make one revolution around each circle in the preimage $f^{-1}(y)$"; moreover, you should care a bit about the orientation, but I'm skipping this for the moment. This might look technical but is quite geometric in nature.