How to get my all friends using spring social facebook template? -
i developing project on spring boot , using spring social facebook api in order user profile , friends. code is
facebook facebook = new facebooktemplate(socialauthtoken); org.springframework.social.facebook.api.user facebookuser = facebook.useroperations().getuserprofile();
above code works fine , gives me profile when try friends profile gives 8 user via paging want users . code friends
list<string> friendsids = facebook.friendoperations().getfriendids(); for(string id : friendsids){ org.springframework.social.facebook.api.user user = facebook.useroperations().getuserprofile(id); system.out.println(user.getemail()); system.out.println(user.getfirstname()); }
it's not possible friends, using app. , no, there no workaround.
see
the list of friends returned via /me/friends endpoint limited list of friends have authorized app.
Comments
Post a Comment