0

Can you please tell me what is wrong with this line of code. I am constantly getting unexpected token ILLEGAL error on this line.

onClick="fbShare(<?=$results->person_id?>,'<?=addslashes($results->title)?>','<?=$results->person_photo_filename?>','<?=$results->person_name?>','<?=addslashes($results->description2)?>','<?=addslashes($results->description3)?>');"

function fbShare(id, title, image, name, description2, description3){
FB.ui({
        method: 'feed',
        name: 'TEST',
        link: 'http://www.someurl.com/' + id,
        picture: image,
        description: title + ' ' + name + ' ' + description2 + ' ' + description3,
        caption: 'TEST'
    },
    function (response) {
        if (response && response.post_id) {
            // alert('');
        } else {
            //alert('');
        }
    }

)
}
Gogo
  • 575
  • 2
  • 7
  • 20

0 Answers0