I am using this code to get facbook friends but it give me error {"error":{"message":"An active access token must be used to query information about the current user.","type":"OAuthException","code":2500}}
Please let me know what is i am doing wrong
this is my code :
parameters.putString("format", "json");
parameters.putString("token", args[0]);
String url = "https://graph.facebook.com/me/friends";
String response = Util.openUrl(url, "GET", parameters);
JSONObject obj = Util.parseJson(response);
Log.i("json Response", obj.toString());
JSONArray array = obj.optJSONArray("data");
return null;