How to set different "limit" parameters for feed and likes in Android Facebook SDK? -


i trying implement method in android using facebook sdk make graphrequest have feed of logged in user.

public void getmystatusinformation(accesstoken accesstoken){     graphrequest graphrequest = new graphrequest(             accesstoken,             "/me/feed",             null,             httpmethod.get,             new graphrequest.callback() {                 public void oncompleted(graphresponse response) {                     jsonobject responseobject =  response.getjsonobject();                     try {                         onstatusesreceived(response);                     } catch (jsonexception e) {                         e.printstacktrace();                     }                 }             }     );     bundle parameters = new bundle();     parameters.putstring("fields", "likes,story");     parameters.putstring("limit", "2");     graphrequest.setparameters(parameters);     graphrequest.executeasync(); } 

i want last 2 posts of user, likes of his/her friends posts. however, when execute graphrequest, response contains 2 posts maximum number of 2 likes.

i tried /me/feed?limit=2, had address not found error. tried parameters.putstring("fields", "likes,story.limit(2)"); had error "story parameter not support subfield limit"

changed order as:

parameters.putstring("limit", "2"); parameters.putstring("fields", "likes,story"); 

but nothing changed.

how can this?


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -