Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

facebook c# sdk: deleting a request-id

I am using the latest facebook c# sdk (http://facebooksdk.codeplex.com/). After i have sent an apprequest, i want to delete the request id.

This is how i do it at the moment:

var app = new FacebookClient(appid, appsecret);
app.Delete(requestID);

But i am not sure if its get deleted or not. If i try to see if it still exist using the graph api i get:

{
"error": {
  "type": "GraphMethodException",
  "message": "Unsupported get request."
   }
}

But the user still has the request in his notification area. So my question is> Is the request deleted, or did i miss something? Thanks

like image 279
Johan Avatar asked Nov 04 '22 21:11

Johan


1 Answers

        var url = "https://graph.facebook.com/{0}?access_token={1}";
        fb.Delete((String.Format(url, fullRequestId, fb.AccessToken)));

First parameter is requestId and user id like -> fullRequestId = requestId + "_" + fbUser.id Second parameter is Accesstoken

like image 103
Xenon Avatar answered Nov 09 '22 08:11

Xenon