Android Facebook sdk 4.0 and Parse : get friends list after facebook login -


i using facebook sdk 4.0 , parse facebook login. after login, access user friends. here code:

private static final list<string> permissions = arrays.aslist("email", "public_profile",         "user_friends", "read_friendlists");  parsefacebookutils.loginwithreadpermissionsinbackground(mactivity,permissions, new logincallback() {         @override         public void done(parseuser user, parseexception err) {             if (err != null || user == null) {                 log.e(tag, "facebookconnect", err);                 mactivity.onfacebookloginerror(failurereason.other);             } else {              }         }     });  .....   //this call made in thread...  graphresponse meresponse = merequest.executeandwait();      if(meresponse.geterror() == null) {         jsonobject jsonobject = meresponse.getjsonobject();         failurereason = updateparseuserdata(jsonobject);         if (failurereason != null) {             return new userextractionresult(null, failurereason);         }     }   graphresponse friendsresponse = graphrequest.newmyfriendsrequest(currentaccesstoken,             new graphrequest.graphjsonarraycallback() {                 @override                 public void oncompleted(jsonarray jsonarray, graphresponse graphresponse) {                     //do nothing                 }             }).executeandwait(); 

the problem empty jsonarray. turns out way can facebook users use the app already want facebook friends , can't find way them, possible? have request app review process? work if that? thanks


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -