ritamnrg / facebook-java-api

Automatically exported from code.google.com/p/facebook-java-api
0 stars 0 forks source link

After executing fql_query method, I get a List of "[event: null]" strings #196

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a FacebookJaxbRestClient
2. Call the fql_query() method using th following fql: select eid,name from
event where eid in (select eid from event_member where uid =<YOUR_USER_ID>
and rsvp_status = 'attending' ) 
3. Print the results (System.out) . You'll see a json response like this
for each result: "[event: null]"

What is the expected output? What do you see instead?
After executing the fql, I expect to get a List of objects that contain
event information. However, all I get is a list of Json-like strings with
the following format: "[event: null]"

What version of the product are you using? On what operating system?

- facebook-java-2.1.0
- mac OSX

Please provide any additional information below.

Here's the code I'm using:

FacebookJaxbRestClient fb = new
FacebookJaxbRestClient(FB_API_KEY,FB_SECRET_KEY,sessionKey);

FqlQueryResponse response = (FqlQueryResponse) fb.fql_query("select
eid,name from event where eid in (select eid from event_member where uid
="+uid+" and rsvp_status = 'attending' )");
List<Object> results = response.getResults();
System.out.println(results.size());
for(int i=0;i<results.size();i++)
    System.out.println(results.get(i));

Original issue reported on code.google.com by andres...@gmail.com on 26 Apr 2009 at 9:03

GoogleCodeExporter commented 8 years ago
Could you fashion this into a JUnit test, please?

Original comment by david.j....@googlemail.com on 1 May 2009 at 8:48

GoogleCodeExporter commented 8 years ago
Please read the FAQ about #document:null
http://code.google.com/p/facebook-java-api/wiki/FAQ

Original comment by david.j....@googlemail.com on 29 May 2009 at 7:29