Facebook Comments

Facebook Comments

Facebook Comments is a Meta social plugin that embeds a comment system on external websites. Scripts load the Meta SDK, set Facebook tracking cookies on page load, and send engagement data to Meta regardless of whether visitors interact with the widget.

Overview

Facebook Comments is a Meta social plugin that replaces or supplements a website's native comment system with Facebook-powered discussions. Visitors can post comments using their Facebook identity, and the comment thread is visible to other visitors on the page. Like all Meta social plugins, the Comments widget loads the full Facebook JavaScript SDK on every page where it appears, initiating cross-site data collection regardless of whether visitors engage with the comments.

What This Script Does

The Facebook Comments plugin is implemented by loading Meta's JavaScript SDK from connect.facebook.net/en_US/sdk.js and rendering the comment interface through an iframe or the FB.XFBML.parse() method with a <div class="fb-comments"> element.

Script Loading and Network Requests

On every page load where the Comments plugin is embedded:

  • The sdk.js script loads from connect.facebook.net, initiating a connection to Meta's infrastructure
  • The SDK requests the comment thread for the page URL from www.facebook.com/plugins/comments.php
  • Existing comments are rendered in an iframe hosted on www.facebook.com, which has full access to the visitor's Facebook cookies
  • Additional assets (profile photos, styling) are loaded from Meta's CDN

Cookies

The Facebook Comments plugin triggers the same cookie infrastructure as other Meta social plugins:

  • _fbp — a first-party tracking cookie set on the host domain (when Meta Pixel is co-deployed) with a unique browser identifier. Lifespan: 90 days. Used for advertising attribution.
  • datr — a .facebook.com browser identification cookie. Lifespan: 2 years.
  • fr — a .facebook.com advertising delivery and measurement cookie. Lifespan: 90 days.
  • sb — a .facebook.com browser identification cookie. Lifespan: 2 years.

For logged-in Facebook users, the iframe reads their session cookies and associates the page visit with their Facebook profile. This data contributes to Meta's interest graph for ad targeting.

Data Transmitted to Meta

Every page load transmits to Meta:

  • The page URL and referrer
  • The visitor's IP address, user agent, and screen dimensions
  • Existing Facebook cookies (enabling cross-site profile association)
  • Timestamp and engagement signals

When a visitor posts a comment, Meta additionally receives the comment content and associates it with the visitor's Facebook account. Comment moderation, reply notifications, and thread management are all handled through Meta's infrastructure.

Consent & Compliance

Facebook Comments is classified under both functional and marketing categories. The commenting functionality serves a legitimate interactive purpose, but the underlying data collection serves Meta's advertising business.

Under GDPR and ePrivacy, the same principles established by the CJEU's Fashion ID ruling (C-40/17) apply to the Comments plugin as to the Like Button: the website operator is a joint data controller with Meta for the data collection triggered by loading the plugin. Consent is required before the SDK script loads. The functional value of the comment system does not override the consent requirement, because the cross-site tracking that occurs is not strictly necessary for the commenting service.

Under CCPA/CPRA, the data transmitted to Meta constitutes "sharing" of personal information for cross-context behavioral advertising. Standard opt-out requirements apply.

Should You Block This Without Consent?

Yes. Despite providing functional commenting capabilities, the Facebook Comments plugin loads Meta's full tracking infrastructure on every page view, transmitting visitor data to Meta for advertising purposes. The cross-site tracking occurs regardless of whether visitors read or post comments. Block the connect.facebook.net script until consent is granted, and consider using a native commenting system or privacy-respecting alternative that does not transmit data to third-party advertising networks.

Visit website

Consent Categories

Functional
Marketing

Also Known As

facebook comments pluginmeta social plugin trackingfacebook comments cookiesfacebook embed privacyfb comments consent

Industries

Computers Electronics and TechnologySocial Networks and Online Communities

Frequently Asked Questions

Does the Facebook Comments plugin require cookie consent?

Yes. Facebook Comments is classified under functional and marketing. Despite its comment utility, it loads Meta's full SDK on every page view. Under the CJEU Fashion ID ruling, operators are joint controllers with Meta for data collected on page load, requiring consent before the SDK script fires.

What does the Facebook Comments plugin track?

Every page load sends the URL, referrer, IP address, and browser metadata to Meta. The plugin sets datr (2 years), fr (90 days), and sb (2 years) cookies on facebook.com. Logged-in users have page visits associated with their Facebook profile via the iframe hosted on www.facebook.com.

How does ConsentStack handle Facebook Comments?

ConsentStack blocks connect.facebook.net until consent is granted under marketing and functional categories. This prevents the comment widget from rendering for non-consenting visitors. ConsentStack recommends considering a native commenting alternative that avoids loading Meta's tracking SDK entirely.

Other Facebook Products

Facebook Login
Facebook Login
Facebook Login is a Meta OAuth authentication service that allows users to sign in to third-party websites using their Facebook account. Scripts load the Meta SDK, set cross-site session cookies for authentication, and may share login activity data with Meta.
Instagram
Instagram
Instagram tracking scripts support conversion measurement for Meta advertising campaigns running on Instagram. Scripts fire on advertiser websites to capture click-through and view-through conversions from Instagram ad placements. Collected data flows into Meta Ads Manager for attribution reporting and audience building.
Meta Pixel
Meta Pixel
Meta Pixel (formerly Facebook Pixel) is a conversion tracking and audience-building tool used by advertisers running campaigns on Facebook and Instagram. Scripts fire events on advertiser websites when users complete actions like purchases or form submissions. Collected data is used for ad targeting, retargeting, and conversion attribution.
Facebook Like Button
Facebook Like Button
Facebook Like Button is a Meta social plugin that embeds a like and react button on external websites. Scripts load the Meta SDK and set Facebook tracking cookies on page load regardless of visitor interaction. Browsing data may be shared with Meta for ad targeting purposes.
Facebook Share Button
Facebook Share Button
Facebook Share Button is a Meta social plugin that lets visitors share web content to their Facebook feed. Scripts load the Meta SDK and set cross-site tracking cookies on page load, enabling Meta to track visits and attribute browsing behavior for advertising purposes.
Instagram Feed
Instagram Feed
Instagram Feed embeds allow websites to display Instagram posts and media galleries. Scripts load Meta's Instagram embed code, set tracking cookies, and send interaction data to Meta. Visitor browser data may be shared with Meta on page load regardless of whether visitors interact with the content.

Related Vendors

Google
Google
Google is the dominant provider of web analytics, advertising, and infrastructure tools. Scripts like Google Analytics, Tag Manager, Ads, and reCAPTCHA collect behavioral data, manage tag firing, serve targeted ads, and detect bots. Sets persistent cookies to track users and correlate activity across sites.
Google Search
Google Search
Google Search appears on websites through the Programmable Search Engine, enabling custom site-specific search functionality. Scripts load the search widget from Google's servers to render search bars and display results within the host website. Sends search queries to Google's index and may set cookies for search personalization and query history.
Google Maps
Google Maps
Google Maps is the dominant web mapping service used for embedded maps and location features on websites. Scripts load interactive map tiles, geocoding, and Places API functionality through the Maps JavaScript API. May set cookies to remember map preferences and manage API quota.
Microsoft Teams
Microsoft Teams
Microsoft Teams is a workplace communication and collaboration platform that can be embedded on websites for chat, meetings, and document sharing. Embedded widgets load from Microsoft's servers to enable real-time messaging, video calls, and file collaboration. Sets authentication and session cookies to verify participant identity and maintain connection state.
Apple Business Chat
Apple Business Chat
Apple Business Chat enables direct customer messaging between websites and Apple's Messages app. Scripts load chat buttons and conversation interfaces that connect visitors to business support agents through iMessage. Sets minimal session cookies to maintain conversation context but does not track browsing behavior or collect analytics data.
Apple Maps JS
Apple Maps JS
Apple Maps JS is Apple's JavaScript mapping framework for embedding interactive maps on websites. Scripts load map tiles, location pins, and routing data from Apple's MapKit servers to render navigable maps within web pages. Requires a MapKit JS token for authentication but does not set tracking cookies or collect behavioral analytics data.

Manage consent for Facebook Comments

ConsentStack automatically detects and manages Facebook Comments trackers so your site stays compliant with global privacy regulations.