how to use Graph Api for deleting an object.

Aug 14, 2010 at 7:37 AM

hi
I m working on c# .net web application.I m using Facebook API for retrieving data from Facebook account.
Now i want to delete wall post or inbox messages through API. i saw that it can be done by graph api,through deleting object.

i try this

            string token1 = api.Auth.CreateToken(); 

           string sURL = "https://graph.facebook.com/Post_id?token=" + token + "&method=delete";  

           WebRequest request = WebRequest.Create(sURL);        

         request.Method = "POST";      

         HttpWebResponse response = (HttpWebResponse)request.GetResponse();

but it gives an error in fourth line "The remote server returned an error: (400) Bad Request." ,

Please reply how to solve this

thank u.

Aug 27, 2010 at 2:38 PM

nid123,

I suggest you post this on the Facebook developer forums. This discussion page is for the "Facebook Graph API .NET" library only.

Thanks,

Will Graham