Thursday, January 7, 2016

How to get Particular application used Facebook Friends

This post about how to get particular application used friends.

* You can get friend list who is using particular application.

Source Code Here


FacebookSdk.sdkInitialize(this);
GraphRequest request=   new GraphRequest(
        AccessToken.getCurrentAccessToken(),
        "/me/friends",
        null,
        HttpMethod.GET,
        new GraphRequest.Callback() {
            public void onCompleted(GraphResponse response) {
        
            }
        }
);

request.executeAsync();
Output      "data":                   "name":"Veena Potter",          "id":"*******************"       },                  "name":"VijayaKumar Muniappan",          "id":"*********"       },                  "name":"Mohammed Siddiq",          "id":"1234324*********"       }    ],    "paging":        "next":"https:\/\/graph.facebook.com\/v2.5\/198639363810546\/friends?format=json&access_token=CAAOKcZCOlbVwBADkN0puCASZAdSJNPsHOqmUAZAPZB70OkftsRcIUSYZA9zKkWDFJbLvOZCwoFaTnWd9U6aa60ulmJ3aPiGKHZAtBxZBAQSNoojGZBVcDGDkd742jVkYIQkMlZAfaw7eNuwsN4dgHZBw29YnuxR5wHfeEcJMdFEgLZBJ7aSHCKYyjvDRsB0K03KtKiRZCv9RhNlFc9wZDZD&limit=25&offset=25&__after_id=enc_AdCJnOgPxZCJgh6xM5sZA3BoTs7q9POI3iIWOcsorUgCTJcHVg1jRUSO8vcoIkCvYkG7hSVf2hCZCi2U0rZAA1ZB6pfkZA"    },    "summary":        "total_count":5    } }, error:null }

No comments:

Post a Comment

Check out this may be help you

Related Posts Plugin for WordPress, Blogger...