I'm using this URL for posting my wall from my .cs page
"https://graph.facebook.com/"+Session["uid"].ToString()+"/feed?message="+Message+"&access_token="+Session["accessToken"].ToString()+""
and my code is
var postValues = new Dictionary();
LoginSocialMedia _LoginSocialMedia = new LoginSocialMedia();
_LoginSocialMedia = Session["ModelData"] as LoginSocialMedia;
Session["uid"] = _LoginSocialMedia.UserId;
// list of available parameters available @ http://developers.facebook.com/docs/reference/api/post
postValues.Add("access_token", Session["accessToken"].ToString());
postValues.Add("message", Message);
string facebookWallMsgId = string.Empty;
string response;
//MethodResult header = SubmitPost(string.Format("https://graph.facebook.com/{0}/feed", Session["uid"].ToString()),
// BuildPostString(postValues),
// out response);
MethodResult header = SubmitPost("https://graph.facebook.com/"+Session["uid"].ToString()+"/feed?message="+Message+"&access_token="+Session["accessToken"].ToString()+"",
BuildPostString(postValues), out response);
if (header.returnCode == MethodResult.ReturnCode.Success)
{
var deserialised =
Newtonsoft.Json.JsonConvert.DeserializeObject>(response);
facebookWallMsgId = deserialised["id"];
TempData["ResultMes"] = "Successfully posted";
}
This code is not working and showing 403 access forbidden .

Vaikesh K PPosted Aug 26, 2015, 3:24 AM
Upendra Pratap ShahiPosted Aug 21, 2015, 7:15 AM
Vaikesh K PPosted Aug 21, 2015, 7:05 AM
Check this Sample
Mark as Correct Answer if helpful.
Vaikesh K PPosted Aug 21, 2015, 7:01 AM
Check this article.
http://www.c-sharpcorner.com/UploadFile/raj1979/post-on-facebook-users-wall-using-Asp-Net-C-Sharp/
http://www.codeproject.com/Articles/569920/Publish-a-post-on-Facebook-wall-using-Graph-API