Android Facebook SDK get friend list -
i want user's logged app friend list. so, need use code that:
new graphrequest( accesstoken.getcurrentaccesstoken(), "/me/friends", null, httpmethod.get, new graphrequest.callback() { public void oncompleted(graphresponse response) { /* handle result */ } } ).executeasync();
the problem don't know need write oncompleted method put friend list array.
after data comes oncompleted() can see structure of json response,
log.d("-@-", "graph response " + response.getjsonobject());
this gives structure of json object there can data. think app needs go through facebook submission there other permissions app needs friends of person
Comments
Post a Comment