c# - How to delete post from wall? -
i have problem deleting posts facebook wall. use facebook c# sdk v4.2.1. example of posting message:
dictionary<string, object> parameters = new dictionary<string, object>(); //init parameters return _app.post("me/feed", parameters);
and ok, method posts returns id of post.
but when try delete post same id
dictionary<string, object> parameters = new dictionary<string, object>(); if(settings.id!=null) parameters.add("id", settings.id); return _app.delete("me/feed",parameters); //id - facebook.jsonobject key = new facebook.jsonobject(); //key.add(new keyvaluepair<string,object>("id",id));
an error has been occurred:
(oauthexception) invalid token: "me". id has been specified. stack trace: @ facebook.facebookapp.makerequest(httpmethod httpmethod, uri requesturl, byte[] postdata, string contenttype, type resulttype, boolean restapi) in d:\projects\facebooksdk\source\facebook\facebookapp.cs:line 800
and on.
i tried remove token "me", past instead of token userid,result same.
try _app.delete(settings.id).
Comments
Post a Comment