Reputation: 8295
I am trying to post a comment from code behind. Is there a way to do this? I can get the users profile pic by
http://graph.facebook.com/" + fbId + "/picture;
Can I post to a wall in a similar way?
Thnaks
Upvotes: 0
Views: 232
Reputation: 480
Using facebook custom application and Facebook SDK
var facebookClient = new FacebookClient(FbConf.testimonialsAppId, FbConf.testimonialsAppSecret);
IDictionary<string, string> parameters = new Dictionary<string, string>();
parameters.Add("message","message on the wall"));
parameters.Add("created_time", DateTime.Now.ToString());
dynamic result = facebookClient.Post(string.Format("{0}/feed", FbConf.testimonialsAppId), parameters);
var id = result.id;
Upvotes: 1