Social media

Facebook Login (Login with Facebook)

Facebook Login (also called Login with Facebook) is the social authentication and social graph SDK from Meta. It lets visitors sign in to a third party website with their Facebook account and exposes profile data, friend lists, ages and other graph fields with the user permission. Embedding the Login with Facebook button or the Meta JavaScript SDK on a European website triggers cookies on the Facebook domain, transfers identifiers to Meta, and creates a joint controller relationship under the GDPR.

Overview

What does Facebook Login (Login with Facebook) do?

What Facebook Login does and how it appears on a website

Facebook Login is the OAuth 2.0 and OpenID Connect compliant authentication service from Meta. A website embeds the Login with Facebook button by including the Meta JavaScript SDK (sdk.js from connect.facebook.net) or by using the Facebook Login dialog directly. After the user authorises the requested permissions (email, public profile, friends list, age range, marketing preferences), Meta returns an access token that the website can use to retrieve graph data through the Graph API.

In practice, the website operator decides which Facebook permissions to request, whether to store the Facebook user ID in the local database, and how to combine Facebook data with the rest of the profile. Each of these decisions has direct GDPR consequences.

Cookies and data collected by Facebook Login

Facebook Login sets multiple cookies on the .facebook.com third party domain: c_user (the logged in user ID), xs (session), datr (browser identifier, 2 years), sb (browser security), fr (advertising identifier, 90 days) and others. On the operator domain, Meta may store a Facebook Login token in localStorage as fblo_<APP_ID> and a short-lived state parameter for the OAuth handshake. The Graph API call transmits the IP address, the User-Agent, the requested permissions and the application ID to Meta servers.

GDPR and ePrivacy implications

Loading the Meta JavaScript SDK before the user clicks the Login with Facebook button is treated by several EU regulators (CNIL France, Datenschutzbehoerde Austria, AEPD Spain) as a social plugin requiring prior consent under Article 5(3) ePrivacy. The Bundeskartellamt Meta decision, confirmed by the CJEU in case C-252/21 (4 July 2023), held that combining Facebook data with off-platform data requires consent, not legitimate interest. The website operator and Meta act as joint controllers for the data sharing initiated by the login button.

International data transfers

Meta Platforms Inc. (US) is certified under the EU-US Data Privacy Framework. The Meta DPA includes Standard Contractual Clauses for jurisdictions outside the framework. Following the Irish Data Protection Commission decision against Meta of 22 May 2023, Meta has accelerated its EU Data Center build out (Ireland, Denmark, Sweden, Spain) but the identity verification still passes through US infrastructure. A transfer impact assessment is recommended.

Consent and legal basis

Consent (Article 6(1)(a) GDPR) is required for the initial Meta SDK load and for the broader data exchange with Meta. Contractual necessity (Article 6(1)(b)) can cover the strictly authentication related processing once the user has clicked Login with Facebook. Any optional permission (friends list, marketing audiences, custom audiences) needs separate granular consent.

Practical compliance steps

Load the Meta SDK only after explicit consent, configure the Facebook app to request the minimum permissions, store only the Facebook user ID and the data strictly necessary for the account, document the joint controller arrangement using the Meta Joint Controller Addendum, list Meta as a recipient in the privacy notice, provide an alternative login method (email and password or another SSO provider), and offer an easy way to disconnect and delete the Facebook ID from the customer profile.

Compliance

Facebook Login (Login with Facebook) and the GDPR

Facebook Login (Login with Facebook) is classified as “Marketing”. On a site that targets European visitors, it must only load after the visitor consents, and it must be listed in your cookie policy.

Legal basis
Consent under Article 6(1)(a) GDPR is required because the user actively chooses to log in with Facebook. The continuous data sharing with Meta for marketing and profiling cannot rely on legitimate interest after the Bundeskartellamt Meta decision confirmed by CJEU C-252/21.
Risk level
high
Applicable regulations
GDPR, ePrivacy Directive, EU-US Data Privacy Framework, German TTDSG / TDDDG, Bundeskartellamt and CJEU Meta rulings, French CNIL guidance on social plugins

Impact assessment (DPIA)

A DPIA is strongly recommended when Facebook Login is used to authenticate customers, store profile information in your CRM or personalise content based on Facebook graph data. The DPIA must cover the data exchanged with Meta, the joint controller agreement, the lawful basis for each Facebook permission requested, the retention of Facebook user IDs in your database, the international transfer mechanism and the procedures for user requests.

Sample text for your banner

You can sign in to this website with your Facebook account. When you click the Login with Facebook button, your browser opens a Meta popup, transmits identifiers and your IP address to Meta Platforms Ireland Limited and Meta Platforms Inc. in the United States, and sets cookies on facebook.com. We process the profile information you authorise to create or update your account. This processing relies on your consent and the EU-US Data Privacy Framework. You can revoke access at any time in your Facebook settings.
Cookies and trackers

What Facebook Login (Login with Facebook) sets and contacts

Tracking method
Social login SDK from Meta (Facebook). JavaScript SDK plus iframe and image pixel. Sets Meta cookies on the third party .facebook.com domain and on the operator first party domain for the login flow.
Server location
Meta Platforms Inc. global infrastructure. EU data is processed by Meta Platforms Ireland Limited under the EU Data Center commitment, but the login flow itself routes through US infrastructure for identity verification.
Data transferred outside the EU
Operated by Meta Platforms Ireland Limited (controller for European users under Meta privacy policy) with Meta Platforms Inc. (United States) as joint controller. Personal data is transferred to the US under the EU-US Data Privacy Framework adequacy decision and Meta Data Processing Terms. Meta also operates EU data centres in Ireland, Sweden, Denmark and Spain.

Cookies set (5)

NameTypeDurationPurpose
c_userHTTP cookie1 yearLogged in Facebook user ID set on .facebook.com after login.
xsHTTP cookie1 yearFacebook session secret combined with c_user to authenticate the request.
datrHTTP cookie2 yearsBrowser identifier set on first visit to facebook.com, used for security and abuse detection.
sbHTTP cookie2 yearsFacebook browser security cookie that helps detect impersonation.
frHTTP cookie90 daysMeta advertising identifier used for ad delivery on the Meta network.

Third-party domains contacted (5)

  • facebook.com
  • connect.facebook.net
  • graph.facebook.com
  • fbcdn.net
  • meta.com
Questions

Frequently asked questions about Facebook Login (Login with Facebook)

Can't find your question? Write to us, we answer fast.

What cookies does Facebook Login set?

Facebook Login sets c_user (1 year, logged in user ID), xs (session secret), datr (browser ID, 2 years), sb (security, 2 years) and fr (advertising identifier, 90 days) on .facebook.com. The operator domain may carry a transient OAuth state parameter and an fblo_<APP_ID> entry in localStorage.

Is consent required for Facebook Login?

Yes. The Meta JavaScript SDK is treated as a social plugin under ePrivacy and requires prior opt-in before it loads. Each Facebook permission requested beyond basic authentication needs its own granular consent.

What is the legal basis?

Consent (Article 6(1)(a) GDPR) for the Meta SDK load and the wider data exchange. Contractual necessity (Article 6(1)(b)) covers the strictly authentication related processing once the user clicks Login with Facebook.

Does Facebook Login transfer data to the US?

Yes. Meta Platforms Inc. is US controlled and certified under the EU-US Data Privacy Framework. The Meta DPA includes Standard Contractual Clauses. Identity verification still passes through US infrastructure even after the EU Data Center build out.

Do I need a DPIA?

Yes when Facebook Login authenticates customers, stores Facebook IDs in your database or feeds Facebook data into marketing personalisation. The DPIA must address the joint controller relationship and the EU-US transfer.

How do I implement Facebook Login compliantly?

Load the Meta SDK only after consent, request minimum permissions, document the joint controller arrangement, store the smallest set of profile data, provide an alternative login method and a clear way to disconnect.

Are there alternatives to Facebook Login?

For social login: Sign in with Apple, Google Identity Services, GitHub OAuth, Microsoft Entra External ID, LinkedIn. For email and password with passwordless, consider WebAuthn, magic links and TOTP. Open standards like OpenID Connect against a self-hosted Keycloak provide full sovereignty.

How do I update my cookie policy for Facebook Login?

Add a dedicated section identifying Meta Platforms Ireland Limited and Meta Platforms Inc. as joint controllers, list the cookies, the purposes (authentication and advertising), the EU-US Data Privacy Framework certification and a link to the Meta privacy policy.

utterances

utterances is a foundational web service that powers critical website functions and digital experiences. It provides reliable infrastructure, seamless integration capabilities, and consistent performance across all devices and browsers. utterances supports modern development practices and scales with growing business needs. With a focus on stability and compatibility, utterances ensures your website delivers a smooth, uninterrupted experience to every visitor and search engine crawler.

Marketing

AddToAny Share Buttons

AddToAny Share Buttons is a popular web platform powering millions of websites worldwide, offering a flexible and extensible foundation for building any type of online presence. It provides themes, plugins, and a user-friendly admin interface for developers and non-technical users. AddToAny Share Buttons supports e-commerce, blogging, portfolios, and enterprise websites with robust customization options. With a massive community and continuous updates, AddToAny Share Buttons remains a leading web.

Analytics

uSocial

uSocial is a foundational web service that powers critical website functions and digital experiences. It provides reliable infrastructure, seamless integration capabilities, and consistent performance across all devices and browsers. uSocial supports modern development practices and scales with growing business needs. With a focus on stability and compatibility, uSocial ensures your website delivers a smooth, uninterrupted experience to every visitor and search engine crawler.

Marketing

Vuukle

Vuukle is a foundational web service that powers critical website functions and digital experiences. It provides reliable infrastructure, seamless integration capabilities, and consistent performance across all devices and browsers. Vuukle supports modern development practices and scales with growing business needs. With a focus on stability and compatibility, Vuukle ensures your website delivers a smooth, uninterrupted experience to every visitor and search engine crawler.

Marketing

UltimatelySocial

UltimatelySocial is an analytics and measurement platform providing deep insights into digital ecosystem performance. It tracks user interactions, measures campaign effectiveness, and identifies optimization opportunities across web and mobile. UltimatelySocial offers customizable dashboards, automated alerts, and data export capabilities. By transforming raw data into actionable intelligence, UltimatelySocial empowers organizations to optimize strategy and maximize return on investment.

Marketing

Viafoura

Viafoura is a foundational web service that powers critical website functions and digital experiences. It provides reliable infrastructure, seamless integration capabilities, and consistent performance across all devices and browsers. Viafoura supports modern development practices and scales with growing business needs. With a focus on stability and compatibility, Viafoura ensures your website delivers a smooth, uninterrupted experience to every visitor and search engine crawler.

Preferences

Make your site compliant today.

Free up to 25,000 sessions a month. No credit card, no commitment.