Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FB share in new window

I've got FB share working with the following code:

<a target="_blank" href="http%3A%2F%2Fwww.facebook.com%2Fshare.php%3Fu%3Dhttp%3A%2F%2Fferalmotion.com%2Fshare%3Fwatch%3Dfd5f0c2"> 
<img src="/images/logo/facebook.png" alt="share on facebook"/> 
</a>

The problem is it opens in a full browser window. Does anybody know how I would get the share to open in the standard 500 x 360 pop-up window ???

like image 685
TuK Avatar asked Nov 28 '22 18:11

TuK


1 Answers

use

<a href="javascript:window.open('http%3A%2F%2Fwww.facebook.com%2Fshare.php%3Fu%3Dhttp%3A%2F%2Fferalmotion.com%2Fshare%3Fwatch%3Dfd5f0c2', '_blank', 'width=400,height=500');void(0);">
<img src="/images/logo/facebook.png" alt="share on facebook"/>
</a>
like image 111
Riki137 Avatar answered Dec 27 '22 02:12

Riki137