Getting all friends from facebook using restfb
<pre><code>FacebookClient facebookClient = new DefaultFacebookClient(MY_ACCESS_TOKEN);
Connection&lt;User&gt; myFriends = facebookClient.fetchConnection("me/friends", User.class);

System.out.println("Count of my friends- " + myFriends.getData().size());
</code></pre>

<p>I am unable to get the friends data(name and other fields).
It is displaying me count=0.
I have given the permission for user_friends also.
Infact in Graph API Explorer I tried graphAPI as   me/friends
It is displaying me </p>

<pre><code> {
      "data": [
      ],
      "summary": {
        "total_count": 463
      }
    }
</code></pre>

<p>Please help!
Thanks in advance</p>