Reputation: 3020
I am using the following parameters to Post a Link along with the picture uri to Facebook. But the thumbnail picture gets cropped. How can i solve this?
var parameters = new Dictionary<string, object>();
parameters.Add("link", link);
parameters["picture"] = picUri;
parameters.Add("caption", "");
parameters.Add("message", "haha");
parameters.Add("name", Title);
client.PostAsync("me/feed", parameters);
I have attached the original image and the image shared.
Upvotes: 0
Views: 296
Reputation: 422
Add "action" parameter . The Image will not be cropped. Please refer this link.
Dictionary<string, string> action1 = new Dictionary<string, string>();
action1.Add("name", "View on");
action1.Add("link", link);
parameters.Add("actions", action1);
Upvotes: 1
Reputation: 15457
You should resize the image to make it a perfect square, e.g. 250x250, so Facebook renders it correctly. Otherwise, Facebook will always crop the image.
Upvotes: 0