我正在尝试将照片附加到预定的Facebook页面帖子上。但是继续得到错误"(#324)需要上传文件"。令牌是正确的,预定的帖子显示在页面上但不显示在图像上。这看起来正确但不确定。
var fbClient = new FacebookClient(pageToken);
var whenToPub = ((DateTimeOffset)DateTime.Now.AddHours(1)).ToUnixTimeSeconds();
dynamic result = fbClient.Post(pageId+"/feed", new { published = false, message = "This is Just a test post", scheduled_publish_time = whenToPub });
string postId = result.id;
var info = new Dictionary<string, object>();
info.Add("message", "test photo");
info.Add("src", imageURL);
var result2 = fbClient.Post("/" + postId + "/photos", info);