Thanks cpilko. Actually it was my misinterpretation of scribe OAuth. Instead of authRequest.addBodyParameter, I should be using authRequest.addQuerystringParameter.
The code works now, and I am able to receive the response.
Question
This is my java code, and the URL String which I am passing as a parameter. If I copy paste the URL on the browser it works.
String strURL="SELECT post_id, actor_id, permalink, message, impressions, type, likes, comment_info, share_count, created_time , updated_time FROM stream WHERE source_id='<srcid>'";
OAuthRequest authRequest = new OAuthRequest(Verb.GET, "https://graph.facebook.com/fql");
authRequest.addBodyParameter("q", strURL);
service.signRequest(accessToken, authRequest);
Response authResponse = authRequest.send();
System.out.println(authResponse.getBody());
Error Message - 20:12:58,986 INFO [stdout] (http-localhost-127.0.0.1-8080-2) {"error":{"message":"(#601) Parser error: unexpected end of query.","type":"OAuthException","code":601}}
Solution
Thanks cpilko. Actually it was my misinterpretation of scribe OAuth. Instead of authRequest.addBodyParameter, I should be using authRequest.addQuerystringParameter.
The code works now, and I am able to receive the response.