Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new GraphRequest(
- AccessToken.getCurrentAccessToken(), "me?fields=friends,name", null, HttpMethod.GET,
- new GraphRequest.Callback() {
- public void onCompleted(GraphResponse response) {
- JSONObject object = response.getJSONObject();
- try {
- friends = object.getJSONObject("friends").getJSONObject("summary").getString("total_count");
- } catch (JSONException e) {
- e.printStackTrace();
- };
- }
- }
- ).executeAsync();
- return friends;
- }
Add Comment
Please, Sign In to add comment