Solved

how to use graph API for facebook

Posted on 2010-09-19
2
2,403 Views
Last Modified: 2012-05-10
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 tried 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." ,

Can someone please suggest what might be causing this?
0
Comment
Question by:bond1980
2 Comments
 
LVL 29

Accepted Solution

by:
Kumaraswamy R earned 500 total points
ID: 33714509
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The new Gmail Phishing Scam going around is surprising even the savviest of users with its sophisticated techniques.
The 21st century solution to antiquated pagers.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question