I am trying to delete pending app requests after entering my canvas application. I followed the instructions at https://developers.facebook.com/docs/requests/#deleting to issue an HTTP DELETE request to the URI mentioned in the documentation, using the request ID for a request from my app (accessed from the Graph API) as well as the user access token. I only get an error that says, “Some of the aliases you requested do not exist.” I suspect there is an issue with my way of formatting this URI. Here’s what I did, using Ruby on Rails and HTTParty:
HTTParty.delete("https://graph.facebook.com/#{outstanding_app_request_ids}?access_token=[#{session[:access_token]}]")
Does anyone have an example of a URI that successfully deletes these requests?
I have found a much more elegant solution that uses the Koala gem, and deletes the outstanding app requests in one swoop with a batch request. Here is the code that gets the requests, as well as deletes them all at once.