As Meta’s developer platform continues to evolve, we're making strategic decisions to focus on tools and features that deliver the most value to developers and businesses. Today, we're announcing that two Facebook Social Plugins - the Facebook Like button and the Facebook Comment button - will be discontinued on February 10, 2026.
This change reflects our commitment to maintaining a modern, efficient platform that serves developers' current needs while enabling us to invest in future innovations. The plugins that will be discontinued reflect an earlier era of web development, and their usage has naturally declined as the digital landscape has evolved.
On February 10, 2026 the plugins will gracefully degrade by rendering as a 0x0 pixel (i.e., an invisible element) rather than causing errors or breaking your website functionality. This change is intended to only remove the plugin content from your site and should not otherwise impact your website's functionality.
For more information, please see the blog and FAQ about this change.
Bei sozialen Plugins kann es demnächst zu gewissen Beeinträchtigungen kommen. Grund dafür ist eine aktualisierte Aufforderung zur Einwilligung in Cookies, die Nutzer*innen von Facebook-Produkten in der Region Europa angezeigt wird. Für Nutzer*innen aus der Region Europa werden die sozialen Plugins „Gefällt mir“ und „Kommentieren“ nur noch dann unterstützt, wenn die Nutzer*innen 1) bei ihrem Facebook-Konto angemeldet sind und 2) ihre Zustimmung zu Cookies für Apps und Websites erteilt haben. Wenn diese Bedingungen beide erfüllt sind, können Nutzer*innen Plugins wie die „Gefällt mir“- oder „Kommentieren“-Buttons sehen und nutzen. Ist eine dieser Bedingungen nicht erfüllt, können Nutzer*innen diese Plugins nicht sehen.
Die europäische Union (EU): Belgien, Bulgarien, Dänemark, Deutschland, Estland, Finnland, Frankreich, Griechenland, Irland, Italien, Kroatien, Lettland, Litauen, Luxemburg, Malta, Niederlande, Österreich, Polen, Portugal, Rumänien, Schweden, Slowakei, Slowenien, Spanien, Tschechische Republik, Ungarn, Zypern
Nicht-EU-Staaten, die dem EWR / der EFTA oder der EU-Zollunion angehören: [Nur EWR-/EFTA-Mitgliedsstaaten] Island, Liechtenstein und Norwegen; Schweiz: [EU-Zollunion] alle Kanalinseln, Isle of Man, Monaco; die britischen Hoheitsgebiete in Zypern; [Europäische Zollunion] Andorra, San Marino, Vatikanstadt
Use the Like Button Configurator to get the Like button code to insert into your webpage.
Use Open graph meta tags to edit your link preview. The og:url tag and data-ref attribute should be the same URL.
Formatted for readability.
<html>
<head>
<title>Your Website Title</title>
<!-- You can use open graph tags to customize link previews.
Learn more: https://developers.facebook.com/docs/sharing/webmasters -->
<meta property="og:url" content="https://www.your-domain.com/your-page.html" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Your Website Title" />
<meta property="og:description" content="Your description" />
<meta property="og:image" content="https://www.your-domain.com/path/image.jpg" />
</head>
<body>
<!-- Load Facebook SDK for JavaScript -->
<div id="fb-root"></div>
<script async defer crossorigin="anonymous"
src="https://connect.facebook.net/en_US/sdk.js#xfbml=1
&version={graph-api-version}
&appId={your-facebook-app-id}"
nonce="FOKrbAYI">
</script>
<!-- Your like button code -->
<div class="fb-like"
data-href="https://www.your-domain.com/your-page.html"
data-width=""
data-layout="standard"
data-action="like"
data-size="small"
data-share="true">
</div>
</body>
</html>| HTML5 Attribute | Description |
|---|---|
| The verb to display on the button. Can be either |
| The color scheme used by the plugin for any text outside of the button itself. Can be |
| The URL of the webpage that will be liked. |
| If your website or online service, or a portion of your service, is directed to children under 13 you must set this to |
| Selects one of the different layouts that are available for the plugin. Can be one of |
|
|
| A label for tracking referrals which must be less than 50 characters and can contain alphanumeric characters and some punctuation (currently +/=-.:_). See the FAQ for more details. |
| Specifies whether to include a share button beside the Like button, |
| The button is offered in 2 sizes i.e. |
| The width of the plugin (standard layout only), which is subject to the minimum and default width. Please see the Layout Settings table for more details. |
Layout Settings are optional.
| Layout | Default Sizes |
|---|---|
| Minimum width: 225 pixels. |
| Minimum width: 55 pixels. |
| Minimum width: 90 pixels. |
| Minimum width: 47 pixels. |
You can change the language of the Like Button by loading a localized version of the Facebook JavaScript SDK. Replace en_US with your locale, for example, fr_FR for French (France).
js.src = "https://connect.facebook.net/fr_FR/sdk.js#xfbml=1&version={graph-api-version} />";
The width of a Social Plugin may need to be adjusted to accommodate different languages.