//request.addBodyParameter(OAuthConstants.CLIENT_SECRET, config.getApiSecret());
request.addBodyParameter(OAuthConstants.CODE, verifier.getValue());
request.addBodyParameter(OAuthConstants.REDIRECT_URI, config.getCallback());
//Adding grant_type parameter manually
//Hard-coded the values for now until scribe comes up with an update
request.addHeader("Content-Type", "application/x-www-form-urlencoded");
request.addBodyParameter("grant_type", "authorization_code");
if(config.hasScope()) request.addQuerystringParameter(OAuthConstants.SCOPE, config.getScope());
Response response = request.send();
return api.getAccessTokenExtractor().extract(response.getBody());
}