I'm fairly new to the Facebook API, so I did some research and came across the Stack Overflow post Cannot delete application invite in Facebook after acceptance
I thought it would work for me since I have the same issue. However, I have not made any progress with any variations of the suggested methods in the post above.
These are the two variations I've been trying:
A:
=============================
FB.api('/'+request_id, 'DELETE', function(fb_response) {
if (typeof callbackFunction == 'function') {
callbackFunction(fb_response);
}
});
B:
===================
FB.api("/", "POST", {
access_token:"MY_APPLICATION_ACCESS_TOKEN",
batch:[
{
"method":"DELETE",
"name":request_id,
//"omit_response_on_success": true,
}
]
}, function(fb_response) {
callbackFunction(fb_response);
});
I'm still getting this error message:
message:"(#2) Invalid parameter: Unknown error"
type:"OAuthException"
How do I fix this problem?