We have the "like page" code on our site now (from facebook dev page), but I've noticed the javascript sdk is slowing page speed of our site (another external request!).

Rather than including the javascript sdk, I'm wondering if it's possible to just have a link attached to a button. On our current "like page" button, when I click it, I get this in the url of the popup:


When I paste this url into a browser, it requests a login and then provides the correct facebook page giving a choice to "like" the page. Although it's dirty, it does work.

Been searching everywhere for a guide, explanation, or tutorial for accomplishing this, but have found nothing.

Does anyone have any suggestions for how to better implement such a link? Is it a matter of stripping out some of what is there? If I have to use a link like this, I'd at least like to get it as general and short as possible.

  • This is a programming question... and are you sure you want a like button without the counter? Commented Dec 19, 2018 at 1:07
  • This question appears to be off-topic because it is about web development which is off-topic at Pro Webmasters. Web development questions may be asked at Stack Overflow but be sure to read their FAQ before posting to ensure your question meets their guidelines.
    – John Conde
    Commented Dec 19, 2018 at 1:25

1 Answer 1


Thats a programming question...

But it's you lucky day :)

<a href="javascript:window.open(url,'like','height=280,width=400');">Like</a>

and replace url with that url to facebook's like.

That's for a "Like" link that opens a popup, you'll have to style it (an image of like button, or css design of it)

  • Sorry - I guessed I posted this in the wrong place. I re-posted in Stack Overflow.
    – andrew5555
    Commented Dec 20, 2018 at 4:27

Not the answer you're looking for? Browse other questions tagged or ask your own question.