How to Add Facebook Like Button to Website (2026) - Facebook Page Plugin

If you are trying to learn how to add Facebook like button to website, here is the honest answer first: the old Like button no longer works. Meta discontinued the Facebook Like button for external websites on 10 February 2026, and any Like button code you add from an old guide will simply not show up. Your website will not break — the button just stays invisible.

That does not mean you cannot connect your website to Facebook at all. Meta still supports two tools that do the job better: the Facebook Page Plugin, which shows your Page on your site with a Follow button, and the Share Button, which lets visitors share your posts on Facebook. This guide explains what happened to the Like button, what to do with your old code, and how to add the Page Plugin and Share Button to your website step by step — including Blogger.

Quick Answer

You cannot add the old Facebook Like button to your website anymore. Meta discontinued the Like button and Comments plugins for external websites on 10 February 2026. The code from old guides still pastes fine, but it renders as an invisible 0x0 pixel element, so visitors see nothing.

Use the Facebook Page Plugin instead. It is free, it still works, and it does more than the old Like button did: it shows your Page cover, profile photo, a Follow button, and your latest posts, all on your website. If you only want visitors to share your posts, add the Share Button. Both are available on Meta's Social Plugins page, and both work on Blogger, WordPress, and any other website. That is the short answer to how to add Facebook like button to website in 2026: the old button is gone, and the Page Plugin is what works now.

What Happened to the Facebook Like Button?

The Facebook Like button was one of the most recognizable buttons on the internet. For 16 years, blogs and news sites put it under their posts so readers could like a page without leaving the site. In November 2025, Meta announced that two Facebook Social Plugins — the Facebook Like button and the Comments plugin — would be discontinued on 10 February 2026.

Meta said the plugins reflect an earlier era of web development and their usage had naturally declined. The company said the change is part of its effort to focus on tools that deliver the most value to developers and businesses. The announcement gave developers three months of notice.

On 10 February 2026, the plugins stopped rendering. Meta's own documentation now says the plugins "gracefully degrade by rendering as a 0x0 pixel (invisible element)" instead of causing errors or breaking your website. In plain words: your site keeps working exactly as before, but the Like button and the Facebook comment box simply do not appear anymore.

Two things did not change. First, the Like button on Facebook itself still works — you can still like posts, photos, and videos inside Facebook. Only the button embedded on outside websites is gone. Second, Meta did not remove every social plugin. The Page Plugin, the Share Button, Embedded Posts, and Embedded Video are still listed on Meta's Social Plugins page. You can read the current list on Meta's Social Plugins documentation.

The proof is on Meta's own site. The old Like Button documentation page no longer exists — it redirects to the Social Plugins overview, and the words "Like Button" do not appear on that page at all. The Like Button configurator, the tool every old guide tells you to use, is gone too. The overview page now lists only Share Button, Page Plugin, Embedded Posts, and Embedded Video & Live Video Player. The FAQ on that page confirms the date is final and adds one more honest line: "No replacement plugins are being provided."

Meta's Social Plugins page lists only Share Button, Page Plugin, Embedded Posts, and Embedded Video - the Like Button is gone

Source: Meta's Social Plugins documentation (developers.facebook.com)

Why Your Old Like Button Disappeared

If your website had a Like button and it vanished one day, nothing on your site broke. Here is how to confirm what happened:

  • Check your code. If your template or widget still has the old fb-like code or the Facebook SDK script, the code is still there — it just renders as an invisible element now. The button did not get deleted; Meta stopped showing it.
  • Check the date. If the button disappeared around February 2026, that is the discontinuation, not a bug in your theme or a problem with your Facebook Page.
  • Check other sites. Old guides, including big ones, still show the same steps — add the SDK, paste the fb-like div, done. Those steps were correct before February 2026 and do nothing now. That is why so many top guides are wrong today: they were written before the change and never updated.
  • Do not try to fix it. There is no setting, no new code, and no alternative configurator that brings the old Like button back. Any site or video that promises a working Like button code in 2026 is showing you the same dead code.

The good news is that the disappearance is harmless. Meta says the change "should not otherwise impact your website", and the invisible element causes no errors. Your pages load the same, your layout stays the same, and your readers lose nothing except a button that almost nobody clicked anymore.

What to Do With Your Old Like Button Code

Meta says removing the old code is optional, but it is worth doing. Here is why: every page that still carries the old code also loads Facebook's JavaScript SDK for nothing. The SDK loads, finds nothing to render, and your page carries that extra weight on every visit. Removing the code makes your pages a little lighter and stops sending data to Facebook for a button that no longer exists.

Removing it is simple, and it takes two minutes:

  • On Blogger: go to Theme, click Customize, then look for the gadget or HTML block where you pasted the Facebook code. If you added it through Layout, open Layout, find the HTML/JavaScript gadget that holds the code, click Edit, delete the code, and save. If the code is inside your theme, remove the fb-like div and the SDK script from the theme HTML, then save the theme. Our guide to how to add a code box in Blogger shows how code blocks work in Blogger posts, and the same idea applies here — code you pasted is code you can remove.
  • On WordPress: open the widget or block where you pasted the code — usually a Custom HTML widget — delete the Facebook code, and update the widget. If you used a plugin for social buttons, check the plugin settings and turn off the Facebook Like button.
  • On any other website: search your template files for fb-like, fb-comments, and connect.facebook.net, and delete those lines. Keep a backup of the file before you edit it.

Do not worry about losing anything. Your Facebook Page, your followers, and your posts are untouched. Only the dead button code goes away. And you do not need to remove the code urgently — Meta says it is optional and your site will not break if you leave it. But there is no reason to keep loading a script for a button that will never appear again.

Method 1: Add the Facebook Page Plugin (the Real Replacement)

If you want to know how to add Facebook like button to website in 2026, this is the method that works: the Page Plugin. It is the closest thing to the old Like button, and in most ways it is better. It shows your Facebook Page right on your website: your cover photo, your profile photo, a Follow button, and your latest posts. Visitors can follow your Page without leaving your site. It is free, and Meta still supports it — its documentation page was updated on 30 June 2026, months after the Like button was discontinued.

You need one thing before you start: a Facebook Page for your blog or website. It must be a Page, not your personal profile, and it must be public — the plugin does not work for Pages restricted by country or age.

Here are the steps:

  1. Open the Page Plugin page. Go to Meta's Page Plugin documentation. You will see a configurator with fields already filled in.
  2. Enter your Page URL. In the "Facebook Page URL" field, replace the example URL with your own Page URL, for example https://www.facebook.com/yourpagename.
  3. Choose what to show. In the "Tabs" field, type timeline to show your Page's posts. You can also add events or messages, but timeline is the one most blogs use. Note that the old data-show-posts setting is deprecated — tabs is the current way to show posts.
  4. Set the size. Set the width to fit your sidebar or content area — 340 pixels is a good fit for most sidebars. Set the height to 500 pixels so a few posts show. Tick "Adapt to plugin container width" if you want it to fit automatically.
  5. Pick the extras. Leave "Show Friend's Faces" ticked to show the facepile of people who follow your Page. Tick "Use Small Header" for a compact look, or "Hide Cover Photo" if you want to skip the cover image.
  6. Click Get Code. A box will show you the code in two parts: a JavaScript SDK script that loads once per page, and the plugin code itself. Copy the full code. If the code box does not open, try another browser, turn off your ad blocker for the page, or allow pop-ups from the site — the configurator sometimes needs those to work.
  7. Add it to your website. On Blogger, go to Layout, click Add a Gadget in your sidebar, choose HTML/JavaScript, paste the full code, give the gadget a title like "Follow on Facebook", and click Save. On WordPress, add a Custom HTML widget with the same code. On any other website, paste the code into your template where you want the plugin to appear.
  8. Check your site. Open your website and look for the plugin. You should see your Page cover, your profile photo, a Follow button, and your latest posts. If the box is empty, check the troubleshooting section below.
Facebook Page Plugin configurator with Page URL, tabs, width, and height fields

Source: Meta's Page Plugin documentation (developers.facebook.com)

That is the whole method. One gadget, one paste, and your Facebook Page lives on your website. The plugin updates itself — when you post on Facebook, the new post appears in the plugin on your site without you doing anything.

Method 2: Add a Facebook Share Button

The Page Plugin is for following your Page. The Share Button is for sharing your posts. If your goal is to get readers to spread your articles on Facebook, this is the button you want, and it still works.

The Share Button lets a visitor share the page they are reading to their own Facebook timeline with one click. Meta still lists it on the Social Plugins page, next to the Page Plugin, and it was not part of the February 2026 discontinuation.

Here are the steps:

  1. Open the Share Button page. From Meta's Social Plugins documentation, open the Share Button. You will see a configurator like the Page Plugin's.
  2. Enter the URL to share. Put the URL of the page you want visitors to share — your homepage, or a single post URL if you are adding the button to one post.
  3. Choose the layout. Pick the button style you like: a simple button, a button with a share count, or a larger box. The simple button is the cleanest choice for most blogs.
  4. Click Get Code and copy it. As with the Page Plugin, you get the SDK script and the button code.
  5. Paste it where you want the button. On Blogger, add it through Layout and an HTML/JavaScript gadget, or paste it inside a post where you want the button to appear. If you want the button on every post, add it to your theme below the post body — but back up your theme first, and only edit the theme if you are comfortable doing so.

One honest note: the Share Button shares your page, it does not let visitors like your Page. If you want both — followers and shares — add the Page Plugin in your sidebar and the Share Button under your posts. That combination replaces everything the old Like button did, and does it better.

Method 3: A Simple Follow Button Without Any Plugin

If you do not want any Meta code on your site at all, use a plain link. This is the fastest and simplest option, and it never breaks, because there is no plugin to discontinue.

Make a button or a text link that goes to your Facebook Page. On Blogger, add an HTML/JavaScript gadget with a simple link, like this: a short line of text that says "Follow us on Facebook" and links to your Page URL. You can also use an image — the Facebook logo, or a small banner you made yourself — and link that image to your Page. Our guide to stylish author profile and About Me widgets for Blogger shows how sidebar widgets work in Blogger, and a follow link fits in the same kind of gadget.

This method has three advantages: your page loads faster because there is no Facebook script, it works even if the visitor uses an ad blocker, and it will never disappear in a future Meta shutdown. The only thing it does not do is show your latest posts on your site — for that, you need the Page Plugin.

For most small blogs, this simple link is enough. Visitors who want to follow you will click it, and you keep your site light and fast.

Page Plugin vs Share Button vs Simple Link

Here is how the options compare, including the old Like button for reference:

OptionStill works?What visitors can doNeeds a Facebook PageNeeds Meta codeBest for
Old Like buttonNo — discontinued 10 Feb 2026Nothing — renders invisibleNo — any URLYes, dead codeNothing anymore
Page PluginYesFollow your Page, see your postsYes, public PageYesGrowing followers
Share ButtonYesShare your post on FacebookNoYesSpreading posts
Simple follow linkYesOpen your Page and followYesNoSpeed and simplicity
Third-party share widget (ShareThis / AddToAny)YesShare to many networks at onceNoNo, its own scriptMany networks in one widget

The Page Plugin is the best replacement for the old Like button, because it is the only option that both shows your Page and lets visitors follow it without leaving your site. The Share Button is the best choice if your main goal is traffic from Facebook shares. The simple link is the best choice if you care most about page speed and never want to fix a broken plugin again. If you want share buttons for several networks at once — Facebook, X, WhatsApp, and Pinterest — a third-party widget like ShareThis or AddToAny puts them all in one widget. Both are free to start. They add their own script to your pages, though, so the simple link is still the lightest option.

Where to Put the Button on Your Blog

A button only works if visitors can see it. These are the spots that work best:

  • Sidebar. The most common place for the Page Plugin. It stays visible on every page, and the plugin's width fits a sidebar well. On Blogger, add it through Layout as an HTML/JavaScript gadget. Our guide to adding a contact form in Blogger shows the same Layout and gadget workflow.
  • Below your posts. The best place for a Share Button. A reader who just finished your post is the most likely person to share it. One share button under the post is enough — do not add three different share buttons in a row.
  • About page. If you have an About page, put a follow link there. Visitors reading about you are already interested, and a follow link there converts well.
  • Footer. A simple "Follow us on Facebook" link in the footer works on every page without taking space from your content.

Do not put the plugin in all four places at once. One Page Plugin in the sidebar and one Share Button under your posts is enough. Too many Facebook boxes slow your pages down and make your blog look desperate for followers.

Troubleshooting: Facebook Like Button and Page Plugin Problems

Page Plugin shows a blank box

This is the most common problem, and it usually has one cause: your Page is not public. The Page Plugin only works for Pages that are not restricted, for example by country or age. Open your Page settings on Facebook, check that the Page is published and has no country or age restrictions, and try again. Also check the URL you entered in the configurator — one wrong letter in the Page name is enough to break it. If your Page is brand new, wait a few minutes and reload your site.

Get Code dialog does not open

If you click Get Code on Meta's configurator and nothing happens, try another browser first. Then turn off your ad blocker for the Meta docs site and allow pop-ups from it. The configurator needs those to work. The code itself is also shown on the documentation page as example code further down, so you can copy the format from there if the dialog keeps failing.

Plugin shows, but no posts appear

Check the Tabs field in the configurator. It must say timeline for posts to show. If it is empty, the plugin shows only your cover and Follow button. Also check that your Page actually has public posts — a Page with no posts shows an empty timeline, which is normal.

Old Like button code is still in my theme — is that a problem?

No. The old code renders as an invisible element and causes no errors. Your site will not break. But it still loads Facebook's SDK script on every page for nothing, so removing it is a good cleanup job. Search your theme for fb-like and connect.facebook.net and delete those lines, after backing up your theme.

Page Plugin makes my site slow

The plugin loads Facebook's JavaScript, and that takes time. If page speed matters more to you than showing posts, switch to the simple follow link from Method 3. It adds no script at all. You can also keep the Page Plugin but remove the Share Button, so only one Facebook script loads.

Configurator says the Page cannot be found

This means the URL you entered does not match a public Page. Check that you copied the full URL from your Page's address bar, and that the Page is published. A Page that is unpublished or still in draft is invisible to the plugin.

FAQs

Can I still add a Facebook Like button to my website?

No. Meta discontinued the Facebook Like button for external websites on 10 February 2026. The old code still pastes, but it renders as an invisible element, so visitors see no button. Use the Facebook Page Plugin instead — it is free, it still works, and it shows your Page with a Follow button.

Why did my Facebook Like button disappear?

Because Meta discontinued the Like button and Comments plugins for external websites on 10 February 2026. Your code is probably still on your site, but Meta stopped rendering it, so it became invisible. Nothing on your site broke, and there is no setting that brings the button back.

Is the Facebook Page Plugin free?

Yes. The Page Plugin is free, and there is no paid version. You only need a public Facebook Page. Meta has not announced any charge or shutdown date for it.

Does the Page Plugin work on Blogger?

Yes. On Blogger, go to Layout, click Add a Gadget, choose HTML/JavaScript, paste the code from Meta's Page Plugin configurator, and save. The plugin appears in your sidebar. It works the same way on WordPress through a Custom HTML widget, and on any other website by pasting the code into your template.

Will the old Like button code break my website?

No. Meta says the discontinued plugins "gracefully degrade by rendering as a 0x0 pixel (invisible element)" and "should not otherwise impact your website". Your pages keep working. The only cost is that the old code still loads Facebook's SDK script for nothing, so removing it makes your pages a little lighter.

Can visitors like my Page without leaving my website?

Yes, with the Page Plugin. Its Follow button lets visitors follow your Page right from your website, without opening Facebook. The plugin's own description says visitors can "like and share the Page without leaving your site".

What is the difference between the Like button and the Page Plugin?

The Like button let visitors like a single page or post on your website. The Page Plugin shows your whole Facebook Page — cover, profile photo, Follow button, and latest posts — on your website. The Like button is discontinued; the Page Plugin is still supported and does more.

Do I need a Facebook Page before adding the plugin?

Yes. The Page Plugin needs a Facebook Page, not a personal profile, and the Page must be public. If your Page is restricted by country or age, or unpublished, the plugin shows a blank box.

Will adding the Page Plugin slow down my website?

A little. The plugin loads Facebook's JavaScript, which takes time. For most blogs the delay is small and worth it. If speed is your top priority, use a simple follow link instead — it adds no script at all.

What should I use instead of the Facebook Comments plugin?

The Comments plugin was discontinued on the same day as the Like button, 10 February 2026, so you cannot add Facebook comments to your website anymore either. Use your platform's own comments instead — Blogger has built-in comments — or a commenting service like Disqus. Do not paste old fb-comments code; it renders invisible just like the Like button.

Can I use a third-party share button instead of Meta's tools?

Yes. Tools like ShareThis or AddToAny give you share buttons for Facebook, X, WhatsApp, Pinterest, and more in a single widget, and both are free to start. They are a good choice if you want one widget for every network. But they load their own script, and they cannot show your Facebook Page or let visitors follow it — for that, you still need the Page Plugin.

Conclusion

Here is the short version of how to add Facebook like button to website in 2026: you cannot add the old one, because Meta discontinued it on 10 February 2026. Every old guide that still teaches the Like button configurator is teaching a dead method — the configurator itself is gone from Meta's documentation.

What you can do instead is better. Add the Facebook Page Plugin to show your Page on your site with a Follow button and your latest posts. Add a Share Button under your posts so readers can spread your articles. Or, if you want the fastest site possible, add a simple follow link and skip Meta's code entirely.

Check your site once for old Like button code and remove it, then add the Page Plugin in your sidebar. That is the whole job — two minutes of cleanup, five minutes of setup, and your blog is connected to Facebook again, with a method that actually works in 2026.