Answer the question
In order to leave comments, you need to log in
Post a photo to a Facebook community wall?
You need to post an image on the community wall.
There is such a code
private static void PostToWall(string message, long id, string wallAccessToken, string ImagePath)
{
var fb = new FacebookClient(wallAccessToken);
string url = string.Format("{0}/{1}", id, "photos");
var argList = new Dictionary<string, object>();
var imgstream = File.OpenRead(ImagePath);
dynamic res = fb.Post(url, new
{
message = Status,
file = new FacebookMediaStream
{
ContentType = "image/jpg",
FileName = System.IO.Path.GetFileName(ImagePath)
}.SetValue(imgstream)
});
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question