i'm attempting share link on facebook via url. share work, instead of loading redirecturi, want close popup window. code:
script
function fbs_click(width, height) { var leftposition, topposition, u, t, c; //allow borders. leftposition = (window.screen.width / 2) - ((width / 2) + 10); //allow title , status bars. topposition = (window.screen.height / 2) - ((height / 2) + 50); var windowfeatures = "status=no,height=" + height + ",width=" + width + ",resizable=yes,left=" + leftposition + ",top=" + topposition + ",screenx=" + leftposition + ",screeny=" + topposition + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no"; u = 'http://' + share_content.facebook.share_link; t = share_content.facebook.share_title; c = share_content.facebook.share_content; window.open('https://www.facebook.com/dialog/feed?app_id=690028841132472&name='+encodeuricomponent(t)+'&display=popup&caption='+encodeuricomponent(c)+'&link='+encodeuricomponent(u)+'&redirect_uri='+u, 'sharer', windowfeatures); return false; } html
<a href="#" onclick="return fbs_click(600, 300)" target="_blank" title="share on facebook"></a> i have found similar question, suggest create new page close popup.
is there way other that?
Comments
Post a Comment