Facebook: how to do sharer as popup

Yulia Gurova picture Yulia Gurova · Sep 7, 2012 · Viewed 14.8k times · Source

I know that sharer has 2 params. There are url (u) and title (t):

http://www.facebook.com/sharer/sharer.php?u=[url]&t=[title]

I want that sharer display as popup window. How do it?

Thanks.

Answer

Tchoupi picture Tchoupi · Sep 7, 2012

Open it with Javascript window.open method:

window.open('http://www.facebook.com/sharer/sharer.php?u=[url]&t=[title]', 'facebook_share', 'height=320, width=640, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no');