How Mautic social login for forms works and when to use it
A marketing team that wants shorter forms and more accurate contact records can let visitors sign in with X, Facebook or LinkedIn instead of typing their details. The Mautic Social Login plugin, documented in the Mautic docs, is built for this: a visitor signs in with an existing platform account, and Mautic uses the returned profile to pre-fill the form and create or update the matching contact. Use it when most of your audience already has accounts on these platforms and when a fuller profile at sign-up is worth more to you than a single anonymous form fill. It is a poor fit if your audience is unlikely to hold these accounts or if you cannot justify asking visitors to share profile data with a third-party platform.
The work is configuring a plugin inside your self-hosted Mautic instance and creating a developer app on each platform you enable. Each developer app needs the Mautic callback URL for your domain, and you then paste the platform's API keys into the plugin settings. Because the callback must reach your public instance, the domain, HTTPS and any proxy settings must be correct before testing. Confirm with your platform developer consoles which profile fields each app can read at your permission level, since X, Facebook and LinkedIn each control access to profile data differently and that access can change. Also confirm which fields your Mautic version maps onto contact fields, and test with real sign-ins on a staging domain before a form goes live.
Plan the contact-matching rules before you switch the form on. Decide which field identifies an existing contact, usually email where the platform supplies it, and decide what happens when a platform returns no email or a different one from the contact on file. Confirm who on your side owns the developer apps, where the API keys are stored, and how key rotation will be handled. Also review consent with your compliance lead: a social sign-in still needs a clear consent statement on the form and the marketing preference that Mautic records for each contact. Test each platform separately, since a field missing from one platform is a common reason a form appears to work for some visitors and not others.
What you need in place before enabling social login
Social login only works when the Mautic instance, its public domain, the platform developer apps and the form plan agree with each other. Each card below is a prerequisite that the team should confirm before any configuration begins.
A supported Mautic release line
Confirm that the instance runs a release line that still receives security support on the date you plan to go live. Check the support end dates on the Mautic releases page before choosing a version, because a release that is out of support will not receive fixes for the authentication code that social login depends on. Confirm the PHP version against the requirements page rather than assuming the server already meets it.
- Mautic 6.0 security support
- 30 Sep 2026
HTTPS on the public domain
The callback URL that each platform redirects to must use HTTPS on the exact domain that visitors reach. Confirm that the certificate is valid, that the web server, reverse proxy and domain settings in Mautic agree on the hostname, and that the instance is reachable from the internet. An internal-only hostname will fail the OAuth redirect even when the rest of Mautic works.
Exact callback URL match
Every platform compares the callback URL character by character. Decide the final hostname before creating any developer app, then copy the callback URL from Mautic into each app's settings. A difference in scheme, subdomain, trailing slash or port will produce a redirect error that looks like a credential problem. Plan to update the URL in every app if the domain changes later.
Administrator access to Mautic
Someone with an administrator role must be able to open the plugin configuration, enter API keys and enable the social login plugin. Confirm that this person has a named account rather than a shared login, since the authentication documentation describes basic user authentication or SAML single sign-on, and an account tied to a departing employee creates a support gap.
Developer accounts on each enabled platform
Register a developer app on each of X, Facebook and LinkedIn that you plan to offer. Each platform issues its own client identifiers and secrets, and each has its own review and permission rules that may change. Confirm with the platform which account owns the app, who holds the credentials and how keys are rotated, because these details are not covered by Mautic.
Forms that will carry the buttons
List the forms that will show social login buttons and the contact fields each one should fill. Decide which fields the platform profile can supply, such as name and email, and which must still be typed by the visitor. Forms that also feed campaigns or consent preferences need a review of their fields before the buttons are added, so that pre-filled data does not bypass the consent step.
Configuring Social Login step by step
This sequence connects Mautic to X, Facebook and LinkedIn so that a visitor who signs in on a test form has their profile fields pre-filled and their contact record created or updated in Mautic. Each step ends with a check you can run before the option reaches a live form.
Confirm the release line and enable the plugin
Confirm which Mautic release line your instance runs and check that the Social Login plugin is available and enabled in the Plugins area of the admin panel. The plugin's documentation is written for the 7.0 line, so confirm with your own environment that the same screens and settings appear before you rely on them. The step is done when the plugin shows as enabled and the platform settings for X, Facebook and LinkedIn are visible.
Copy the callback URL for each platform
Open the Social Login configuration in Mautic and copy the callback URL shown for each platform you plan to use. Record each URL exactly, including the protocol, domain and path, because the developer apps you create next must match it character for character. Store the list in your change record so the platform owners can check it. The step is done when you have one saved callback URL per platform and each one points to the public domain users will visit.
Create a developer app on each platform
A platform owner creates a developer app on X, Facebook and LinkedIn, using the account your organization controls rather than a personal login. Enter the callback URL from the previous step in the app's redirect or callback field and request only the permissions the form needs. Confirm each platform's current developer terms and any app review rules, since these change outside Mautic. The step is done when each app exists, lists the exact callback URL and is saved in your password manager.
Copy the client keys into Mautic
Copy the client ID and client secret from each developer app and enter them in the matching platform fields in Mautic's Social Login settings. Save the configuration and restrict access to the settings page to administrators, since these keys allow sign-in requests to be made on your behalf. The step is done when each platform's settings are saved and the configuration page no longer reports missing keys.
Add the login option to a test form
Create a test form in a non-production instance or a clearly labeled test form on production, and add the Social Login option to it. Map the profile fields the platform returns, such as name and email, to the matching Mautic contact fields, and confirm that the field mapping matches your contact model. Publish the form only to a private test page. The step is done when the form renders the login buttons and the mapping is saved for each field.
Test the first sign-in creates a contact
Sign in on the test form with a test account on one platform and confirm that the form pre-fills from the profile. Then open the contact list in Mautic and find the new contact record with the expected fields and source. Repeat for each platform you enabled. The step is done when each platform produces one new contact that carries the profile data you mapped.
Confirm a second sign-in updates the same contact
Sign in again on the same platform with the same test account and check that Mautic updates the existing contact rather than creating a second one. Search for the contact by email and confirm there is exactly one record with the updated fields and the activity timeline from both sign-ins. Also confirm that a sign-in from a different platform with the same email behaves the way your identity design expects. The step is done when the contact count stays the same and the existing record shows the new activity.
How a visitor's social sign-in reaches a Mautic contact
The flow starts in the visitor's browser on a page with a Mautic form, where the visitor chooses X, Facebook or LinkedIn. The platform authenticates the visitor and redirects the browser back to the callback URL on the self-hosted Mautic instance. Mautic then uses the stored API keys to retrieve profile data and creates or updates the contact before the form is pre-filled. Check that each callback URL matches the one registered on the developer app, and that the keys sit only on the Mautic server.
Trust boundaries between the visitor's browser, the social platform and the Mautic instance.
Mapping platform profile data to Mautic contact fields
This table maps the data each social platform may return to the Mautic contact fields a form writes to, and lists what the team must confirm before go-live. Read each row as a question to answer for your app permissions and Mautic version, not as a fixed mapping. The main takeaway is that the duplicate-matching rule, usually based on email, decides whether a sign-in updates an existing contact or creates a new one.
| Form field | Platform source | Mautic contact field | What to confirm |
|---|---|---|---|
| Email address | Profile email, if the platform returns it for your app permissions | Email (unique identifier) | Whether each platform returns email at all, and how often it is missing or unverified |
| First name | Profile given name or first name attribute | First name | Exact attribute name each platform returns and whether your app must request it separately |
| Last name | Profile family name or last name attribute | Last name | Exact attribute name, and how names with multiple parts or non-Latin characters are stored |
| Duplicate matching rule | Email returned by the platform | Existing contact match on email | The rule agreed before go-live, including what happens when no email is returned |
| Consent or marketing opt-in | Usually not returned by the platform; captured on the form | Consent or preference field set by the form | The wording shown, the lawful basis your team relies on, and whether the value is set only on first sign-up |
| Communication preferences | Not returned by the platform | Preferred channel or segment membership | Whether preferences set by a form can overwrite values a contact already holds |
| Platform identifier | Platform user ID | Custom field or company record (illustrative) | Whether your team needs to store the platform ID at all, and the data protection basis for doing so |
| Platform and Mautic versions | Platform API version and app permission scopes in use | All rows above | Confirm the platform fields and the Mautic release line you run in the current documentation before you build the mapping |
Choosing which platforms to enable
X sign-in tends to suit teams whose audience already follows their brand, such as media, developer and technology communities that discuss professional topics in public. Setup starts in X's developer portal, where the team creates an app for this Mautic instance, registers the callback URL that Mautic's Social Login settings display, and copies the client credentials that Mautic stores.
- Dedicated app: Create a separate app for this Mautic instance so its credentials can be rotated without affecting other integrations.
- Callback URL: Copy the callback URL from Mautic exactly, including protocol and domain, because a mismatch blocks sign-in.
- Access tier and fields: Confirm which API access level and user fields your app can read under X's current developer terms, and request only what the form needs.
- App status: Check whether the app must be approved before users outside your team can sign in, and what changes when it leaves a development state.
- Email availability: Confirm whether email addresses are returned for every account, since forms that require email need a fallback when it is missing.
Confirm all of these against X's current developer documentation before announcing the sign-in option, because access tiers and app requirements change.
Facebook sign-in fits consumer audiences, event registrants, community members and business-to-consumer brands, where many prospects already have an account and expect to use it. Setup happens in Meta's developer console, where the team creates an app, adds the Facebook Login product, registers Mautic's callback URL as a valid redirect, and records the app ID and app secret.
- App mode: Keep the app in development mode while testing, and confirm which accounts can sign in before the app is switched to live use.
- Valid redirect URIs: Register the production callback URL and any test URL separately, since Meta matches redirects exactly.
- Permissions: Request only the profile and email permissions the form needs, and confirm which of them need review before public use under Meta's current policies.
- Business verification and privacy: Confirm whether business verification, a published privacy policy URL or data deletion instructions are required for your app type.
- Data handling: Document which profile fields Mautic stores on the contact record, so privacy notices and consent settings match what is collected.
Verify app mode, permission status and policy requirements in Meta's current developer documentation, because review rules change and apply differently to each app.
LinkedIn sign-in is usually chosen by B2B teams that need professional identity on forms, such as account-based marketing, partner programs and events aimed at job roles. Setup takes place in the LinkedIn Developer Portal, where the team creates an app, requests the sign-in product that provides the required identity data, adds Mautic's callback URL, and records the client ID and client secret.
- Company page association: Confirm whether the app must be linked to a LinkedIn company page and who on your team holds the admin role for it.
- Product access: Check which sign-in product and scopes must be requested, and whether LinkedIn must approve access before users outside your team can sign in.
- Redirect URLs: Register the production callback URL exactly as Mautic displays it, and update the list if the instance domain changes.
- Returned fields: Confirm which profile fields and whether email are returned for each sign-in, and map only those fields to Mautic contact attributes.
- Terms and verification: Review LinkedIn's current API terms and any app verification step that applies to your use case before launch.
Check product access, scopes and verification requirements in LinkedIn's current developer documentation, since these change and determine what the form can receive.
How contacts are created or updated on repeat sign-ins
The first thing to settle is how Social Login decides whether a sign-in belongs to an existing contact. On a first sign-in with no match, Mautic creates a new contact from the profile data the platform returns. On a later sign-in, Mautic looks for a record that matches the identifier it received and updates that record instead. If the identifier that comes back from X, Facebook or LinkedIn is not the same value your existing contacts carry, the visitor becomes a second contact. Duplicates of this kind split campaign history, scoring and consent records across two people, so the matching rule belongs in the design review before launch, not after the first complaint. Confirm with your Mautic administrator which field Social Login writes to and whether it is the same field your forms and imports use for email, since the plugin documentation at Mautic social login docs describes the contact creation behavior at a high level only.
Test the full cycle with a known test account on each platform before any real visitor uses the form. Run the sequence in order: a first sign-in on a clean test contact, a second sign-in from the same account, a sign-in from a second test account that uses the same email address, and a sign-in after the test contact has been edited by hand in Mautic. For each step, record whether a new contact appeared, which fields changed, and whether the contact's segment memberships and campaign positions stayed intact. Keep the test accounts and contacts out of live segments so that the test data does not trigger real emails. Ask the platform owners for the exact fields each provider returns for your app configuration, because these depend on the permissions you request and the platform's current rules, and that information should come from the provider's own developer documentation.
Decide in advance how contacts imported from a CRM, a spreadsheet or an earlier form will match social sign-ins. If imported contacts use a different email format, casing or a secondary address, the first social sign-in will create a duplicate even though the visitor is known. Document the normalization rule you will apply, such as lowercase email comparison, and decide whether a cleanup job will merge duplicates after launch. Then document what happens to fields a visitor has already typed into the form. Write down whether the social profile overwrites existing values, fills only empty fields, or is ignored for fields that a person has already completed. This rule protects data that a visitor entered deliberately, and it should be approved by whoever owns consent and preference records, because a changed name or address can affect how later emails are addressed and where consent is recorded.
Securing the API keys, callbacks and visitor data
Social login hands Mautic access to third-party developer apps and to personal profile data from visitors. The controls below cover where credentials live, who can change them, how callbacks and permissions are scoped, and how the platform stays patched and disclosed to visitors.
Store app secrets outside the code
Each X, Facebook and LinkedIn developer app issues a client ID and secret that Mautic uses to exchange tokens. Keep these values in Mautic's own configuration and in your secrets process, never in templates, theme files, Git repositories or chat threads. Ask who can read the secret on each platform console, and plan a rotation step for when someone leaves the project.
Social login docsRestrict admin rights everywhere
Two admin surfaces control this feature: Mautic's user roles and the developer consoles at each platform. Limit Mautic administrator rights to the people who maintain plugin settings, and keep developer-app ownership with named accounts rather than a shared login. The Mautic authentication docs describe basic user authentication, which you should review against your access policy.
Register exact callback URLs only
Each developer app accepts a list of callback URLs that receive the login response. Register the exact Mautic callback URL for each environment, including the protocol and host, and avoid wildcards or broad domain patterns. Separate production and test apps so a staging hostname cannot receive production tokens.
Request only the fields your forms need
Each platform lets the app request scopes, and every extra scope widens what a visitor shares. Start from the contact fields you map on the form, such as name and email, and request nothing beyond them. Review scope changes whenever someone adds a field to a form, because the consent screen shown to visitors will change with it.
Keep Mautic on a supported release
Social login runs inside the Mautic release you operate, so unsupported versions carry the same exposure as any other web application. Check the security support end dates for your current line and plan the upgrade before support ends. Do not treat a working login flow as evidence that the release is current.
- Mautic 7.2 support ends
- 30 September 2026
Record consent wording on forms
A social login button can pull a visitor's name, email and profile details into a marketing contact record. Keep the consent text, the privacy notice link and the stored consent record for each form version, so you can show what the visitor saw. Confirm the wording with your privacy team before the form goes live.
Common failures when social login does not create or update contacts
This table pairs each symptom seen when Mautic Social Login fails to pre-fill forms or write contacts with its likely cause and the fix to try first. Read it top to bottom against the platform developer consoles and the Mautic plugin settings, since several symptoms share a root cause. Confirm app status and permission scopes on each platform before changing Mautic configuration.
| Symptom | Likely cause | Fix |
|---|---|---|
| Login returns a redirect or callback error from X, Facebook or LinkedIn | The callback URL registered in the developer app does not exactly match the callback URL shown in Mautic | Copy the callback URL from the Mautic plugin settings into each app, matching scheme, host and path exactly, then save and retest |
| Login fails with an invalid client or unauthorized error | Client ID and client secret are swapped, copied from the wrong app, or belong to a different platform | Re-enter each platform's keys from its own developer app, confirm which value is the public identifier and which is the secret, and test each provider separately |
| Login option never appears on the form | The social login plugin is not enabled, or the form does not have the login feature turned on | Enable the plugin, confirm the providers you need have keys saved, then check the form settings and clear the cache before testing in a private browser window |
| Login works but Mautic is not reachable from the platform | The instance is served over HTTP, uses a private address, or sits behind a proxy that rewrites the public host | Serve Mautic over public HTTPS with a valid certificate and a stable domain, and confirm the proxy forwards the original host and protocol |
| Duplicate contacts appear after people sign in | The provider identifier or email returned differs from what the existing contact record stores, so Mautic cannot match them | Decide which field is the match key, check that each provider returns it consistently, and merge duplicates before relying on the contact record |
| Forms load but fields stay empty after sign in | The platform returned fewer fields than the form expects, often because email or profile permissions were not granted or the app does not request them | Compare the fields each provider returns with the form fields, reduce form fields to what the platform supplies, and confirm the requested permission scopes in each developer console |
| Login stops working after a period that previously worked | The app was put into development mode, restricted, suspended, or its keys were rotated without updating Mautic | Check app status and review requirements in each developer console, then update the saved keys in Mautic and confirm the app is approved for the users you target |
Questions teams ask before enabling Mautic social login
What drives the effort and cost of setting up Mautic social login?
The main drivers are the number of platforms, the number of forms, how complex the field mapping is, how much consent review the change needs, and how much internal testing you require. Each platform needs its own developer app, callback URL and API keys, so three platforms roughly means three sets of registrations, credentials and checks. Every form that pre-fills from a profile needs its fields mapped to Mautic contact fields and tested with real sign-ins. Consent wording and the handling of profile data add review time. If you want a quote, ask the provider to break effort down by platform, form and review step, and to state which items are one-time and which recur.
How long does enabling Mautic social login take?
No duration has been fixed for this work, and the timeline depends mainly on your own review cycles and on platform approvals. Some developer app registrations and permission reviews are handled by X, Facebook and LinkedIn on their own schedules, so you should not assume a platform will approve your app immediately. Internal sign-off from marketing, legal or privacy teams often takes longer than the technical build. Ask any provider to show the approval steps they expect, the points where your team must respond, and the test sign-off they need before go-live.
What does our team need to provide before the work starts?
You need four things ready before setup begins. First, administrator access to the Mautic instance so the Social Login plugin can be enabled and configured. Second, developer accounts on each platform you plan to use, with the ability to create apps and manage their settings. Third, a written test plan that lists the forms, browsers, sign-in paths and contact outcomes to verify. Fourth, a named owner who approves the consent wording shown next to each sign-in option. Without that owner, technical work often stalls at the point where profile data would start flowing into contacts.
Can an internal team set up Mautic social login by itself?
An internal team can usually handle a single platform with a simple form, provided it has Mautic administration skills and access to the platform developer console. Complexity rises with several platforms, several forms, custom field mapping, and a compliance review that requires documented evidence of how profile data is collected and stored. In those cases the work involves more registrations, more test cases and more approvals, and mistakes in callback URLs or mapping can create duplicate or incorrect contacts. Decide which steps your team can own and whether you need outside help for testing or review.
How do API keys and callback URLs get checked during setup?
Each platform app must be registered with the exact callback URL that Mautic provides, and the API keys must be copied into the correct Mautic plugin settings. Mismatched URLs or incorrect keys are a common reason sign-in fails, so check them in a staging instance before production. Store the keys in your secrets management process, restrict who can view them, and confirm which Mautic user account the integration runs under. Test sign-in from a clean browser session and confirm that the expected contact fields are created or updated.
What recurring work follows after social login goes live?
Three areas recur. First, key rotation: API keys and app secrets should be rotated on a schedule your security team sets, and each rotation needs updates in both the platform console and Mautic. Second, platform policy changes: X, Facebook and LinkedIn can change permissions, API terms or app review rules, which may require updates to your forms or consent text. Third, Mautic upgrades: you should retest social login after each upgrade within your supported release line, because plugin behavior can change. Ask any provider whether these checks are covered by a retainer or billed separately.
Who is responsible for consent when profile data pre-fills a form?
Your organization stays responsible for deciding what profile data is collected, what consent the person sees, and how contacts are used afterward. The technical setup should only pull the fields your consent wording covers, and that wording needs a named owner who signs it off. A provider can build the flow and document it, but it does not decide your lawful basis or consent language. Confirm the scope of data with your privacy team before mapping any fields.
Is social login for forms the same as a full Mautic deployment project?
No. Social login is a focused change to forms and contact creation on an existing Mautic instance, so it depends on a working installation, sound contact fields and a defined consent process. Installation, server configuration, segments and campaigns are separate pieces of work that you plan on their own. If your instance is not yet stable or your contact model is still changing, resolve those first, because social login will feed data into whatever model you have.
How DeployOpen scopes and delivers Mautic social login
DeployOpen treats Mautic social login for forms as a fixed-scope piece of work inside your own Mautic instance, covering the developer apps, callback URLs, API keys and contact handling before anything is switched on. The written scope defines which platforms are connected, which form fields are pre-filled and how existing contacts are matched.
How we scope
- Confirm which of X, Facebook or LinkedIn your forms need and who owns each developer app.
- Map which profile fields pre-fill which Mautic contact fields, and which fields are left for visitors to enter.
- Agree in writing how existing contacts are matched and updated, and what happens when a profile returns no email address.
How we build
- Register the developer apps on each platform and set the callback URL that your Mautic instance exposes.
- Store the API keys in your Mautic configuration under your own secrets handling, not in shared documents or templates.
- Test each platform end to end on a staging instance, including new contacts, returning contacts and revoked permissions.
How we hand over
- Deliver a configuration record listing each app, callback URL, permission scope and the owner who can rotate its keys.
- Document the contact creation and update rules so marketing teams know which fields a social login can change.
- Walk your team through testing a form and reviewing the contact record before the change goes live.
How we support
- Offer ongoing support and upgrades for the social login setup as a retainer, if your team wants continued help.
- Retest the connection after Mautic upgrades or platform policy changes that affect developer apps or permissions.
- Confirm with each platform's current terms which profile data it returns and how long your app may keep it.

