I am trying to removing facebook requests by using graph api :
DELETE https://graph.facebook.com/[<REQUEST_OBJECT_ID>_<USER_ID>]?access_token=[USER or APP ACCESS TOKEN]
Like this:
DeleteMethod method = new DeleteMethod("https://graph.facebook.com/requestId_userId?access_token=token");
HttpClient httpClient = new HttpClient();
httpClient.executeMethod(method);
Server sends me status code 400 but when I open this link on browser FB returns me information about request. What I doing wrong?
I resolved this problem using attribute “method” in http request and replacing user access token on app access token like this:
this url works on all requests types: post, get and delete.