Facebook C # sdk: removing request id

I am using the latest facebook version of C # sdk (http://facebooksdk.codeplex.com/). After I submitted apprequest, I want to remove the request id.

Here's how I do it at the moment:

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

But I'm not sure if he retired or not. If I try to see if it still exists using the api graph, I get:

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

But the user still has a request in his notification area. Therefore, my question is:> Is the request deleted or am I missing something? Thanks

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

- requestId, - → fullRequestId = requestId + "_" + fbUser.id - Accesstoken

+2

, , FacebookClient , . , , . , .

0

This is what works for me (sorry, VB.Net):

Dim fb As FacebookClient = New FacebookClient(Config.FacebookAppId,Config.FacebookAppSecret)
Dim result = fb.Delete(String.Format("{0}_{1}?access_token={2}", facebookRequestId, facebookUserId, fb.AccessToken))
0
source

All Articles