Updated

Technology · Code & frameworks

Facebook Login

developers.facebook.com

What is Facebook Login?

Facebook Login is a sign-in feature of the Facebook SDKs that lets an app connect to Facebook. On Android it uses the Facebook app or a supported browser, and the iOS SDK is open source.[1][2]

Facebook Login is a secure authentication system that allows people to create accounts and log into apps and websites using their Facebook credentials. It simplifies the login process for users while providing developers with access to rich user data (with user consent). Facebook Login offers features like profile syncing, friend lists, and social plugins, enabling apps to create more personalized and engaging user experiences. Its widespread adoption and robust security measures make it a popular choice for businesses looking to streamline their user authentication process.

Facebook Login belongs toAuthenticationcategory.

What it is

Login is a feature of the Facebook SDK[1]

Platforms

Android and iOS SDKs[1][2]

Open source

The iOS SDK is an open-source library[2]

Data sharing

You can limit what the app shares with Facebook[2]

34websites

use it — 1.3% of the 2,539 websites we scanned in the last 12 months

#2of 11

tools in its category seen in our scans (we recognize 40)

In short: worth considering when your users have Facebook accounts. Check what your app shares with Facebook.[1][2]

1.7% of all websites we track run Facebook Login▲ 0.04 points since 20 Sep

What is Facebook Login used for?

In short, from the websites we scan

Signing in to an Android app
Use the native Facebook app login or a supported browser flow.[1]
Adding sign-in to an iOS app
The iOS SDK ships a login kit, FBSDKLoginKit.[2]
What it does
Facebook Login is one of the authentication tools websites use. In our scans it is #2 of the 11 we see.
Used together with
It is often installed next to Google Tag Manager, Google Analytics, Funding Choices.

Should you use Facebook Login?

The 10-second version, from the vendor’s own pages and what we see in our scans

Facebook Login fits if…

  • You build an Android or iOS app and want people to connect with Facebook[1][2]

Look elsewhere if…

  • You want sign-in with a Google Account, including one-click return visits[3]Google describes its sign-in this way.
Sign-in inside app-owned Android embedded browsers (WebViews) is no longer supported[1]
Enabling Facebook integrations can share information about how people use your app with Facebook[2]
CocoaPods stopped being supported for the iOS SDK; Swift Package Manager is the way to keep receiving updates[2]

Facebook Login next to Google Sign-in

Statements come from each vendor's own pages; website counts and speed are ours.

Facebook LoginGoogle Sign-in
What each one says
Sign-in withFacebookthrough the Facebook SDKs[1]Google Accountsign in once, then one click[3]
Data use statedShared with Facebookyou can limit sharing[2]Not used for adsor other non-security purposes[3]
What we see in our scans
Websites running it341.3% of 2,539 scanned sites1124.4% of 2,539 scanned sites

Scan rows count public pages only; a tool needs at least 5 measured sites to appear.

  • Google Sign-in: Sign in with a Google Account, signing in once and returning with one click[3]

Choose Facebook Login if…

  • Your users are on Facebook and you build Android or iOS apps with the Facebook SDK[1][2]

Choose Google Sign-in if…

  • You want sign-in with a Google Account and one-click return visits[3]

Support and help for Facebook Login

How the vendor says you can reach it, and the public help community

Stack Overflow

3,344 questions[4][5]

53% have an upvoted answer. [facebook-login] questions

How Facebook Login sites protect themselves

Share of the 34 sites we scanned that run each protection

HSTS35% · 12 sites

HTTP Strict Transport Security (HSTS) informs browsers that the site should only be accessed using HTTPS

reCAPTCHA32% · 11 sites

reCAPTCHA is a free service from Google that helps protect websites from spam and abuse

Protections add up, they do not replace each other: a site can run all of them.

How Facebook Login sites are built

Closest partners. The number says how many times more often the tool runs on Facebook Login sites than on an average website. Hover a partner for its share of sites.

Criteo10×comScore8×Google AdSense8×Funding Choices8×Google Sign-in7×AppNexus7×Prebid7×Amazon Advertising6×jQuery UI3×

Usually installed alongside

The bigger the bubble, the more of the 34 Facebook Login sites also run the tool. Colour shows what the tool does. Hover or tap a bubble for details.

Google Tag Manager91%Google Analytics88%Facebook Pixel38%comScore18%Funding Choices47%Google AdSense32%Prebid32%Amazon Advertising24%Cart Functionality15%
Tag managerAnalyticsCookie consentAdvertisingOnline store

Questions about Facebook Login

What is Facebook Login?
Facebook Login is a sign-in feature of the Facebook SDKs that lets an app connect to Facebook. On Android it uses the Facebook app or a supported browser, and the iOS SDK is open source.
What is Facebook Login used for?
Use the native Facebook app login or a supported browser flow. The iOS SDK ships a login kit, FBSDKLoginKit. Facebook Login is one of the authentication tools websites use. In our scans it is #2 of the 11 we see. It is often installed next to Google Tag Manager, Google Analytics, Funding Choices.
Does Facebook Login work in embedded browsers on Android?
No. Authentication in app-owned embedded browsers is no longer supported. Use the native Facebook app login or a supported browser-based flow.[1]
How do I install the iOS SDK now?
With Swift Package Manager. CocoaPods is no longer supported from version 19.0.1.[2]
Can I limit what the app shares with Facebook?
Yes. The SDK terms say you can limit sharing by updating the Insights control in the developer tool.[2]
Is the SDK open source?
The iOS SDK is described as an open-source library.[2]
Where can I ask questions?
The SDK page points to the Facebook Developer Community Forum, Stack Overflow, or an issue in its repository.[2]
How many websites use Facebook Login?
We found Facebook Login on 34 of the 2,539 websites we scanned in the last 12 months (1.3%).
What are the alternatives to Facebook Login?
Other authentication tools we recognize include Google Sign-in, Apple Sign-in, Clerk, SAP Customer Data Cloud Sign-in.

Is your website built with Facebook Login?

Create a free status page that shows your visitors your site is up. It also gives your site its own public page where new people can discover it.

Example status page card