You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Dror <dr...@gmail.com> on 2012/06/05 10:05:06 UTC

restfb json object

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...

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/restfb-json-object-tp4649734.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: restfb json object

Posted by Dror <dr...@gmail.com>.
reply... thanks

On Tue, Jun 5, 2012 at 11:05 AM, Dror [via Apache Wicket] <
ml-node+s1842946n4649734h24@n4.nabble.com> 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
> ml-node+s1842946n1842947h27@n4.nabble.com
> To unsubscribe from Users forum, click here<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1842947&code=ZHJvcmdvbmVuQGdtYWlsLmNvbXwxODQyOTQ3fDE4OTg5MDc1OTc=>
> .
> NAML<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/restfb-json-object-tp4649734p4649735.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org