Solved

how to use graph API for facebook

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
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…
This video discusses moving either the default database or any database to a new volume.

744 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

16 Experts available now in Live!

Get 1:1 Help Now