Click here to Skip to main content
15,895,667 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 5th line "The remote server returned an error: (400) Bad Request." ,

Please reply how to solve this.

Thank you.
Posted
Updated 14-Aug-10 2:46am
v3
Comments
ely_bob 22-Dec-10 16:07pm    
You should probably ask this on a facebook forum, but I'd wadger you don't have the permission to be deleting stuff from the wall... just a guess...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900