Open GoogleCodeExporter opened 9 years ago
What steps will reproduce the problem? 1. I just bumped into Issue 307, which is solved now. If the rawResponse could be logged, it would have been much easier to debug. rawResponse is logged in auth_getSession() but not for all the others. Index: src/main/java/com/google/code/facebookapi/ExtensibleClient.java =================================================================== --- src/main/java/com/google/code/facebookapi/ExtensibleClient.java (revision 1029) +++ src/main/java/com/google/code/facebookapi/ExtensibleClient.java (working copy) @@ -281,7 +281,6 @@ Pairs.addParam( "generate_session_secret", "true", params ); } String rawResponse = callMethod( FacebookMethod.AUTH_GET_SESSION, params ); - log.debug( "Facebook response: " + rawResponse ); if ( "json".equals( getResponseFormat() ) ) { try { JSONObject json = new JSONObject( rawResponse ); @@ -489,6 +488,7 @@ boolean doHttps = FacebookMethod.AUTH_GET_SESSION.equals( method ) && "true".equals( params.get( "generate_session_secret" ) ); try { rawResponse = method.takesFile() ? postFileRequest( method, params, fileName, fileStream ) : postRequest( method, params, doHttps ); + log.debug("Facebook response: " + rawResponse); return rawResponse; } catch ( IOException ex ) {
Original issue reported on code.google.com by marcsp...@gmail.com on 7 Apr 2010 at 1:06
marcsp...@gmail.com
Original issue reported on code.google.com by
marcsp...@gmail.com
on 7 Apr 2010 at 1:06