I solved the problem by simply creating a new services constructor (as in the example) on the redirected page and using oauth_token and oauth_verifier, you will get when u will be redirected to a new page, such as
Token requestToken = new Token(request.getParameter("oauth_token"),request.getParameter("oauth_verifier"));
Verifier verifier = new Verifier(request.getParameter("oauth_verifier"));
the rest is the same as in the example.
source
share