0

I am using a URL of an image which is 160x368 in dimension. The URL I am getting is from a web-service and is used at many places in my and some other applications too, so I can't change it.
I am passing this URL to the parameter of feed dialog as follow:

params.putString("picture", getFbImageUrl());
facebook.dialog(this, "feed", params,new customDialogListener());

The image on feed dialog is displayed with very poor quality and is not looking very good. However on the actual wall post it just gets shrinked and looking fine.
I just want to show a good quality of (even a small version of ) the same image on the feed dialog, which looks nice too.
Any help?

Gladius
  • 9
  • 4
0xC0DED00D
  • 19,522
  • 20
  • 117
  • 184

2 Answers2

0

Append this line "/picture?type=small" at the end of the url, as i done here,

params.putString("picture", getFbImageUrl());
facebook.dialog(this, "feed", params,new customDialogListener());

private String getFbImageUrl()
{   URL url;
return url+"/picture?type=small"
}

I hope this will work, as per refrence https://developers.facebook.com/docs/reference/api/

aalionline
  • 448
  • 2
  • 6
  • 21
  • The trick works for getting the profile picture of a user, but I want to share the picture. I haven't checked if it works in my problem or not, will let you know once I am able to check it again. – 0xC0DED00D Mar 15 '12 at 06:28
0

I've finally worked around this by changing the web-service to give me a already compressed image link, to use in the facebook sharing.
The another solution was to use photo-sharing, but since it's not what I(read client) wanted, so I chose the first option.
If anyone has any better solution, please let me know.

0xC0DED00D
  • 19,522
  • 20
  • 117
  • 184