---
title: Loading user information from Facebook profiles
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

The Facebook Login authentication feature allows you to automatically download user information from associated Facebook profiles. Users who log in using their Facebook accounts do not need to fill out information about themselves. Instead, the system can do that for them automatically.

> **Note:** This functionality replaces the functionality of the **Facebook Connect required data** web part, available in Kentico CMS 7.

1. Go to **Settings -> Security & Membership -> Authentication -> Facebook**.
2. Select an option in **Update users**:

   - **Never** – turns this feature off. User information that has already been downloaded is kept in the system.
   - **When they log in for the first time** – downloads the user information only once, when they log in for the first time.
   - **Every time they log in** – updates the user information every time they log in. However, this option doesn't update fields in Kentico that the user has already changed or fields that the system already filled using the information from the Facebook profile. For example, if an existing user gets married and changes her name on Facebook, her record in Kentico is not updated because the system downloaded her name from Facebook before.
3. Click **Edit** next to **User profile mapping**.
4. Select how Kentico user fields relate to Facebook user fields and click **Save & Close**.
5. **Save** the settings after you define the field mappings.

The system stores your settings. You can test the configuration by placing the **Facebook Connect logon** web part on a page.

> **Note:** Some fields of Facebook users can be accessed only if your [Facebook Login app](https://docs.kentico.com/k9/managing-users/user-registration-and-authentication/facebook-authentication.md) has the required permissions and has gone through _App Review_ (for example the _Birthday_ and _Location_ fields). See [Permissions Reference - Facebook Login](https://developers.facebook.com/docs/facebook-login/permissions/) on the Facebook website for further details.
>
> Additionally, individual users need to approve access to their fields. The Facebook Connect web parts show a request for permission to the user automatically. If the user does not give their permission, **the system does not log the user in and does not load any information**.
