Combined Osmands Code

The function of add wine to my cellar is changed.

The original :

public boolean addToMyCellerFromWineList(Context context, String
wineName, String region, String vintage, String grape, String colour,
String body, String sweetness, String size, double price, String note,
String wineImage){
....}

Now change to :

public boolean addToMyCellerFromWineList(Context context, String
wineName, String region, String vintage, String grape, String colour,
String body, String sweetness, String size, double price, String note,
String wineImage, int wine_url_id){
....}

Just added one more parameter, please press the prd_id to that
parameter, if the prd_id is null, just press -1 is ok.

Below is the part of code for posting facebook message:

//************Posting facebook******************//
ImageButton facebook_btn = (ImageButton)
findViewById(R.id.cellar_facebook_icon);
facebook_btn.setOnClickListener(new OnClickListener(){

@Override
public void onClick(View arg0) {

Bundle params = new Bundle();

String desc = The wine note;

//limit the display note chars less than 180 chars
if (desc.length() > 180) {
desc = desc.substring(0, 180)+"...";
}
params.putString("description", "I've added "+wineDetail.get(1)+" into
my wish list. Let's have a wine gathering and try together.  Tasting
note: "+desc);

params.putString("name", The wine name);

//Just set the picture to this link, otherwise the facebook message
will have a undesire picture
params.putString("picture", "https://www.watsonswine.com");

//If the prd_id equal -1 then set the link is go to watson's wine home
page
if (!prd_id.equals("-1")) {
  params.putString("link",
"https://www.watsonswine.com/WebShop/BrowseProductDetail.do?prdid="+wine
Detail.get(21));
} else {
  params.putString("link", "https://www.watsonswine.com");
}
CommonUtilities.facebook.dialog(MyCellarsWineDetail.this.getParent(),
"feed", params, new UpdateStatusListener());
}

});
//************Posting facebook******************//

Thank you
Osmand