Enabling logging only logs the request, for some reason the response was not there.
FINER: POSTing:
https://graph.facebook.com/
Aug 16, 2012 12:46:28 AM com.googlecode.batchfb.util.RequestBuilder$1 setup
FINER: POST data is:
access_token=AAAD60&batch=%5B%7B%22method%22%3A%22GET%22%2C%22relative_url%22%3A%2235%2Fattending%2F1000032%22%7D%5D
If I map the response to a String, I get this exception
java.lang.IllegalArgumentException: Can not deserialize instance of java.lang.String out of START_OBJECT token
at [Source: N/A; line: -1, column: -1]
If I map to Object, some child of the cached object has what seemed like well formed JSON.
{name=Pic Rollr, id=1000032, rsvp_status=attending} note: id's are shortened.
When I went back to mapping the response to a JsonNode, I noticed that the response fell under
the "data" element. So in the debugger,
((JsonNode)myRSVP1.get()).get("data");
returns
(org.codehaus.jackson.node.ArrayNode) [{"name":"Pic Rollr","id":"1000032","rsvp_status":"attending"}]
but the top level data={} is not in the raw response.
I was expecting
myRSVP1.get().get("rsvp_status") to return attending, it returns null.
This is for the code.
Batcher batcher = new FacebookBatcher(accessToken);
Later<JsonNode> myRSVP1 = batcher.graph(fbEventID + "/attending/" + fbUserID, JsonNode.class);
myRSVP1.get();
and inspecting myRSVP1..
-John G
Aug 16, 2012 12:46:28 AM com.googlecode.batchfb.util.RequestBuilder execute