Unable Get All Fields Of Friend List In Facebook Sdk Sample And In Friend Picker Sample Getting Only Id,name In Android
I am developing facebok sample demo for get all friend list of login user. I am running Friend Picker Sample successfully,But getstuck to extract all the details of friends like em
Solution 1:
After very sturggle i try some methods and finally found solution.
publicvoidgetFriendsList() {
Bundle bundle=newBundle();
bundle.putString("fields","id,name,first_name,last_name,email,picture,gender,birthday,work");
mAsyncRunner.request("me/friends",bundle,friendsRequsetListener,null);
}
RequestListener friendsRequsetListener =newRequestListener() {
@OverridepublicvoidonMalformedURLException(MalformedURLException e, Object state) {
// TODO Auto-generated method stub
}
@OverridepublicvoidonIOException(IOException e, Object state) {
// TODO Auto-generated method stub
}
@OverridepublicvoidonFileNotFoundException(FileNotFoundException e, Object state) {
// TODO Auto-generated method stub
}
@OverridepublicvoidonFacebookError(FacebookError e, Object state) {
// TODO Auto-generated method stub
}
@OverridepublicvoidonComplete(String response, Object state) {
// TODO Auto-generated method stubString json = response;
try {
Log.e("Response","========>"+json);
}
catch(Exception e){
}
}
};
I hope this will help others. Thanks!!
Post a Comment for "Unable Get All Fields Of Friend List In Facebook Sdk Sample And In Friend Picker Sample Getting Only Id,name In Android"