Quantcast

restfb json object

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

restfb json object

Dror
Hi, i'm a fresh developer, i run into a problem while fetching jsonobjects from the facebook using restfb API:

 JsonObject facebookUser = facebookClient.fetchObject("1674441058", JsonObject.class)

there should be a field named type that old information about the object type, in this case type = user.

but it dose not exists, facebookUser.getString("type") returns an error.

when i fetch it on the graph API explorer it appears as the last field,

System.out.println(facebookUser.toString()) gives all the fields except this one

any idea how to get the type of a json object?

thanks in adv...
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: restfb json object

Dror
reply... thanks

On Tue, Jun 5, 2012 at 11:05 AM, Dror [via Apache Wicket] <[hidden email]> wrote:
Hi, i'm a fresh developer, i run into a problem while fetching jsonobjects from the facebook using restfb API:

 JsonObject facebookUser = facebookClient.fetchObject("1674441058", JsonObject.class)

there should be a field named type that old information about the object type, in this case type = user.

but it dose not exists, facebookUser.getString("type") returns an error.

when i fetch it on the graph API explorer it appears as the last field,

System.out.println(facebookUser.toString()) gives all the fields except this one

any idea how to get the type of a json object?

thanks in adv...


If you reply to this email, your message will be added to the discussion below:
http://apache-wicket.1842946.n4.nabble.com/restfb-json-object-tp4649734.html
To start a new topic under Users forum, email [hidden email]
To unsubscribe from Users forum, click here.
NAML

Loading...