-2
Code:


 AccessToken.getCurrentAccessToken(),
                                "/"+fbUserid+"/friendlists",
                                null,
                                HttpMethod.GET,
                                new GraphRequest.Callback() {
                                    public void onCompleted(GraphResponseresponse) {
 Log.e("friendsRes",response.toString());        
                                    }}).executeAsync();

{Response: responseCode: 200, graphObject: {"data":[]}, error: null}

In this code i am not able to get friends list in android, there is have any other code filter of facebook friends. Thanks!!

Hemant Parmar
  • 3,924
  • 7
  • 25
  • 49
akila
  • 7
  • 3

1 Answers1

-1
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/{friend-list-id}",
    null,
    HttpMethod.GET,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();

Note: A user access token with read_custom_friendlists permission is required.

Sunil Sunny
  • 3,949
  • 4
  • 23
  • 53
Babin
  • 70
  • 1
  • 1
  • 9