OAuthService service = new ServiceBuilder() .provider(GoogleApi.class) .apiKey("198898816518.apps.googleusercontent.com") .apiSecret("hpvFCWHt6ZxWqO-DLwF062rO") .scope(SCOPE) .build(); Token requestToken = null; requestToken = service.getRequestToken(); System.out.println("authorize Scribe here:"); Token token = new Token("oauth_token", "4/qGH3cNdzrdIIMmEsDMTRNhKD9z51"); System.out.println(AUTHORIZE_URL + requestToken.getToken()); System.out.println("paste the verifier"); Verifier verifier = new Verifier("IWqonDH9RCtK0hwyZQlYOUCb");
I got an error.
org.scribe.exceptions.OAuthException: response body is incorrect. Unable to extract token and secret from this: "Invalid token.
thanks in advance....
source share