so I built an app which lets user login and link their Flickr account to my app, it logins fine and stores AccessToken in my database for user to avoid linking Flickr every time they login. I have this code:
OAuthService service = new ServiceBuilder()
.provider(FlickrApi.class)
.apiKey("apiKey")
.apiSecret("apiSecret")
.build();
Token flickReq = service.getRequestToken();
String authUrl = service.getAuthorizationUrl(flickReq);
try{
MSConnection msc = new MSConnection();
Token accessToken = msc.getToken(userId_acc); // This gets AccessToken from database.
OAuthRequest req = new OAuthRequest(Verb.POST, "https://api.flickr.com/services/rest/");
req.addQuerystringParameter("method", "flickr.test.login");
service.signRequest(accessToken, req);
Response resp = req.send();
System.out.println(resp.getBody());
in response I get: oauth_problem=signature_invalid
What am I doing wrong?