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.

Is Facebook Comments GDPR compliant?

Facebook Comments typically loads functional and marketing trackers, which are not strictly necessary for your site to work. Under the GDPR and the ePrivacy Directive, non-essential cookies and trackers must stay blocked until a visitor gives clear opt-in consent. So Facebook Comments can be fully GDPR compliant, but only if your site holds its scripts until consent is granted and lets visitors decline just as easily. Compliance depends on how your site loads Facebook Comments, not on Facebook Comments itself.

Visit website

Consent Categories

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

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

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.
Hopin
Hopin
Hopin is a virtual events and webinar platform. Embedded registration widgets and livestream players collect attendee information and track viewing activity. Scripts may set cookies to maintain session state and measure engagement during live and recorded events.
Dixa
Dixa
Dixa is a customer service and conversation routing platform. Scripts embed a live chat and support widget on websites, enabling real-time visitor conversations with support teams. Cookies identify returning visitors, maintain chat session continuity, and may log prior interaction history.
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.
Pipedream
Pipedream
Pipedream is a serverless workflow automation and API integration platform. It operates primarily as a backend service with no direct browser-side script presence on third-party websites. Where embedded, it may surface lightweight webhook trigger interfaces or automation status widgets.
YouTube Player
YouTube Player
YouTube Player embeds YouTube videos on external websites via iframe. Scripts load from Google's servers and set cookies for video playback preferences, watch history, and ad targeting. Cookies are dropped even when visitors only view the embed without interacting with the player.

Manage consent for Facebook Comments

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