function share() { var id = $('#ctl00_MainContent_lblpitemid').text(); var pic = $('#ctl00_MainContent_lblPic').text(); var title = $('#ctl00_MainContent_lblTitle').text(); var Product = $('#ctl00_MainContent_lblProduct1').text(); var url = $('#ctl00_MainContent_lblUrl').text(); //alert(id); //alert(pic); //alert(title); FB.ui( { method: 'feed', name: title,//'This is the content of the "name" field.', title: title, link: url,//'http://www.oiiofarms.com/view_pr5.aspx?Nappies_Id=' + id + "Product=" + Product, //url: "getdata.php?timestamp=" + timestamp + "uid=" + id + "uname=" + name, picture: 'http://www.oiiofarms.com/' + pic, caption: 'http://www.oiiofarms.com', description: "oiiofarms.com", message: "" }); }