Messageing : all conversations fetched are null

54 views
Skip to first unread message

Jason Cj

unread,
May 12, 2013, 3:36:52 AM5/12/13
to res...@googlegroups.com

Number of conversations fetched are matched with facebook inbox. but in each conversation everything is null.

code :=
Connection myCon = facebookClient.fetchConnection(
"100001807810325/inbox", Conversation.class);

    for (List<Conversation> c : myCon) {
        for (Conversation co : c) {
            print("Conversation link : " + co.getLink());
            print("Conversation size : " + co.getMessageCount());
            System.exit(0);

output :=
Conversation link : null
Conversation size : null

Marcel Stör

unread,
May 12, 2013, 7:29:19 AM5/12/13
to res...@googlegroups.com
On 12.05.13 09:36, Jason Cj wrote:
> Number of conversations fetched are matched with facebook inbox. but in
> each conversation everything is null.

What do you get if you try with the Graph API explorer[1]? How is it
different from the JSON you get with RestFB?

Cheers,
Marcel

[1] http://developers.facebook.com/tools/explorer

--
Marcel Stör, http://frightanic.com
Couchsurfing: http://www.couchsurfing.com/people/marcelstoer
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

MOstwanted cJ

unread,
May 19, 2013, 9:51:49 AM5/19/13
to res...@googlegroups.com
I am really sorry for late reply.. I have 91 conversation in my inbox.
but List<Conversation> size is 89. each conversation is empty. I
checked it with Graph API explore. List<Conversation> is matched with
explorer. but restfb is not loading msgs in conversation.
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "RestFB" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/restfb/grZX-uuAZyo/unsubscribe?hl=en.
> To unsubscribe from this group and all its topics, send an email to
> restfb+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>


--


$rikishna.$
Mostwanted CJ

Marcel Stör

unread,
May 19, 2013, 2:11:50 PM5/19/13
to res...@googlegroups.com
On 19.05.13 15:51, MOstwanted cJ wrote:
> I have 91 conversation in my inbox.
> but List<Conversation> size is 89. each conversation is empty. I
> checked it with Graph API explore. List<Conversation> is matched with
> explorer. but restfb is not loading msgs in conversation.

If you think RestFB doesn't correctly parse the JSON returned for this
call pls create an issue at https://github.com/revetkn/restfb/issues
providing the JSON from the Graph API explorer.
Reply all
Reply to author
Forward
0 new messages