eyhan / facebook-java-api

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

groups_get causes FQL exception #339

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
FacebookJsonRestClient fjrc = new FacebookJsonRestClient("123", "456asd");
JSONArray result = fjrc.groups_get(890L, null);

throws:

com.google.code.facebookapi.ExtensibleClient postRequest
FINE: facebook.groups.get: POST: http://api.facebook.com/restserver.php: 
{api_key=123, call_id=1288956666946, format=json, method=facebook.groups.get, 
sig=fce6b565e61859ff828e1af3ce0da881, uid=890}
com.google.code.facebookapi.FacebookJsonRestClientBase parseCallResult
FINE: Facebook response:  {"error_code":13,"error_msg":"The underlying FQL 
query made by this API call has encountered the following error: Parser error: 
unexpected '{' at position 
253.","request_args":[{"key":"api_key","value":"123"},{"key":"call_id","value":"
1288956666946"},{"key":"format","value":"json"},{"key":"method","value":"faceboo
k.groups.get"},{"key":"sig","value":"fce6b565e61859ff828e1af3ce0da881"},{"key":"
uid","value":"890"}]}
com.google.code.facebookapi.FacebookException: The underlying FQL query made by 
this API call has encountered the following error: Parser error: unexpected '{' 
at position 253.
    at com.google.code.facebookapi.JsonHelper.parseCallResult(JsonHelper.java:59)
    at com.google.code.facebookapi.FacebookJsonRestClientBase.parseCallResult(FacebookJsonRestClientBase.java:58)
    at com.google.code.facebookapi.FacebookJsonRestClient.groups_get(FacebookJsonRestClient.java:84)
    at com.ircenter.net.microblogs.Main.main(Main.java:91)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:115)

Original issue reported on code.google.com by conrad.a...@gmail.com on 5 Nov 2010 at 11:37