After several attempts, I found a solution for my problem.
If you are interested:
I had to get a list of friends.So i did like:
protected void getFacebookFriends() {
new Request(
session,
"me/friends",
null,
HttpMethod.GET,
new Request.Callback() {
public void onCompleted(Response response) {
JSONObject json = null;
try {
json = new JSONObject(response.getRawResponse());
JSONArray jarray = json.getJSONArray("data");
} catch (JSONException e) {
e.printStackTrace();
}
}
}
).executeAsync();
}
It returned me all users who logged in my application.
So i simply added version Graph Api in Request
like:
new Request(
session,
"/v1.0/me/friends",
null,
HttpMethod.GET,
new Request.Callback() {
public void onCompleted(Response response) {
JSONObject json = null;
try {
json = new JSONObject(response.getRawResponse());
JSONArray jarray = json.getJSONArray("data");
} catch (JSONException e) {
e.printStackTrace();
}
}
}
).executeAsync();
And it returned list of all my friends ! But it works if your application registered before April 30th (2014) and it will deprecated at 30th April 2015