java - Fetching Private Messages of users on Facebook using RestFB -


i new using java apis , confused using restfb fetch user private messages facebook.

what have figured till now..

 connection<message> cnv = facebookclient.fetchconnection("me/inbox", message.class);     //system.out.println(cnv.getdata().get(1).getid());     for(message msg:cnv.getdata()){          system.out.println(msg.getmessage());     } 

here id of 1 particular conversation being fetched nothing else. other getter methods return null.

i unable understand if message.class correctly mapped pojo message threads, or conversation.class .

i grateful if answered question stuck here , need quick relief.

  1. what correct way go this, please attach code sample. want fetch private messages of user. 2)
  2. i read somewhere fb allows 25 items or something? this? concern me?
  3. i need fill own domain pojos, need not only
    a. chat messages
    b. based on thread id
    c. based on after received time .

facebookclient facebookclient = new defaultfacebookclient(accesstoken); // conversation class needed retrieve private messages restfb.  connection<conversation> pages = facebookclient.fetchconnection(profileid +  "/conversations",conversation.class); 

Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -