将照片上传到用户的墙上时,我收到了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);
我错过了什么?