I`m developing android application.I get requests friends from me/friendrequests . How can i Confirm request to friend ???
asyncRanFace.request("me/friendrequests",new RequestListener(){
public void onComplete(String res, Object state) {
try{
JSONObject jsonRequest = Util.parseJson(res);
JSONArray friendsRequestArray = jsonRequest.getJSONArray("data");
JSONObject friendRequest;
String fRId=null,fRNm= null;
for(int i =0 ; i<friendsRequestArray.length(); i++){
friendRequest= friendsRequestArray.getJSONObject(i);
JSONObject temp= friendRequest.getJSONObject("from");
fRId = temp.getString("id");
fRNm= temp.getString("name");
myRequestFriendsMap.put(fRId, fRNm);
}
}