Solved

how to use graph API for facebook

Posted on 2010-09-19
2
2,393 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

Free camera licenses with purchase of My Cloud NAS

Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses FREE.

Question has a verified solution.

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

Encryption for Business Encryption (https://en.wikipedia.org/wiki/Encryption) ensures the safety of our data when sending emails. In most cases, to read an encrypted email you must enter a secret key that will enable you to decrypt the email. T…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
A simple description of email encryption using a secure portal service. This is one of the choices offered by The Email Laundry for email encryption. The other choices are pdf encryption which creates an encrypted pdf of your email and any attachmen…

896 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now