Mudit Bajpai
Mudit Bajpai

Reputation: 3020

Share Link with Picture URI on Facebook in Wp7

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.

enter image description here

enter image description here

Upvotes: 0

Views: 296

Answers (2)

Shilpa
Shilpa

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

Niraj Shah
Niraj Shah

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

Related Questions