0

my Facebook share button worked perfectly until a few days ago when it started re sizing itself and refusing to open, any clues as to what is causing this?\

here's my js script for the pop-up window

function fbShare(url, title, descr, image, winWidth, winHeight) {
    var winTop = (screen.height / 2) - (winHeight / 2);
    var winLeft = (screen.width / 2) - (winWidth / 2);
    window.open('http://www.facebook.com/sharer.php?s=100&p[title]=' + title + '&p[summary]=' + descr + '&p[url]=' + url + '&p[images][0]=' + image, 'sharer', 'top=' + winTop + ',left=' + winLeft + ',toolbar=0,status=0,width=' + winWidth + ',height=' + winHeight);
}

here's the link

<a href="javascript:fbShare('http://dundaah.com/docs/tue.html', 'Fb Share', 'Facebook share popup', 'http://goo.gl/dS52U', 520, 350)" class="button">Share</a>

if this looks familiar it's cause I got it here jsfiddle

Horizon_Net
  • 5,959
  • 4
  • 31
  • 34
Max Njoroge
  • 489
  • 3
  • 21

0 Answers0