将照片上传到用户的墙上时,我收到 ArgumentNullException,参数“stream”
var fb = new FacebookClient();
fb.PostCompleted += (o, e) =>
{
...
};
dynamic parameters = new ExpandoObject();
parameters.access_token = accessToken;
parameters.message = "test efesur";
var mediaObject = new FacebookMediaObject
{
ContentType = "image/png",
FileName = "mifoto.png"
};
mediaObject.SetValue(photo);
parameters.source = mediaObject;
fb.PostAsync("me/photos", parameters);
AI 遗漏了什么?