我正在尝试使用以下代码在页面墙上发布图片:
string message = "Some message";
string picture = "http://somesource.com/test.jpg";
string pageToken = "page access toke";
string pageId = "page id";
string PostUri = "https://graph.facebook.com/{0}/feed?access_token={1}&";
var request = string.Format(PostUri, pageId, pageToken);
var sb = new StringBuilder();
sb.AppendFormat("picture={0}&", picture);
sb.AppendFormat("message={0}", message);
WebClient webClient = new WebClient();
webClient.Encoding = Encoding.UTF8;
webClient.Headers.Add("Content-Type", "application/x-www-form-urlencoded");
var bytes = Encoding.UTF8.GetBytes(sb.ToString());
webClient.UploadData(request, bytes);
它对我有用。但是使用图形 api 发布的图像比使用常规 facebook 网络界面发布的图像要小。我应该在此代码中更改什么以显示更大尺寸的图像?