Search code examples
facebooksharefacebook-sharer

Facebook: how to do sharer as popup


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.


Solution

  • 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');