Module · LNK Social login
  • PrestaShop

LNK Social login: Google and Facebook sign-in for PrestaShop

Your customers sign in or create their account in one click with Google or Facebook, on the sign-in page, at registration and from step 1 of the order. They type neither an email address nor a password, their cart follows them and they come back to the page they left. Tokens are checked on your server, with no intermediary service.

  • Version 1.1.1 · PrestaShop 1.7.6 to 8.x
  • Version 1.9.1 · PrestaShop 9
  • PrestaShop 1.7.6 to 9.x
  • PHP 7.1 to 8.4
  • No override
  • AI Ready

Key points

  • One-click sign-in with Google and Facebook.
  • Four placements: sign-in, account creation, step 1 of the order, checkout sign-in panel.
  • Creation screen with the verified address and your shop's consents.
  • Safe linking of an existing account, with the password typed once.
  • Remember me for Google and Facebook, adjustable duration.
  • Tokens checked on your server, encrypted secrets, no intermediary service.
  • Buttons following the brands' guidelines, dressed by your theme, free texts in each language.
  • AI Ready: settings by an AI assistant, without ever seeing your secrets.
  • PrestaShop 1.7.6 to 9, multistore.

Google and Facebook, in the brands' colours

Enable the providers you want, in the order you want, and choose where the buttons show: under the sign-in form, at the top of account creation, at step 1 of the order, and in the checkout sign-in panel when your theme places it. The buttons follow the brands' official guidelines; your theme sets the corners, the spacing and the font. The texts are free in each language.

Fewer drop-offs at registration

The customer types neither an email address nor a password: the provider has already checked them. Before any account is created, a short screen shows the verified address, their first and last name, with the consents and fields your shop asks for at registration. No account is created without the customer seeing it.

Remember me

The "Remember me" box, placed by your theme on sign-in and checkout, also applies to Google and Facebook. Ticked, the customer stays signed in for 30 days (from 1 to 365 days, adjustable); unticked, the session ends when the browser closes, and after 24 hours at most.

Protected accounts

Tokens are checked on your server: signature, issuer, audience, expiry. Only addresses verified by the provider are accepted. A customer who already has an account with the same address links it by typing their password once: nobody can take over an account created in advance in their name.

Your secrets stay with you

Client IDs and secrets are entered in your back office, encrypted in your database with your shop's key, never shown again. No intermediary service: your shop talks directly to Google and to Facebook, and only during sign-in.

Ready for AI (AI Ready)

Ask an AI assistant to set up the module for you: providers shown, placements, order and layout of the buttons, Google button style, "Remember me" and the texts of each language, with the same checks as the back office. On PrestaShop 9.2, through Ask AI and the PrestaShop MCP Server module; everywhere, through the lnk:config command (JSON export, import with a preview). Your client IDs and secrets are never shown to it.

Data protection

The module only keeps the link between the provider and the customer account: no token, no photo, no friend list. It deletes it with the customer and includes it in the personal data export.

Light and fast

Figures measured on the module's files, gzip compressed (level 9), LNKBOOT factory method. One 1.4 KB stylesheet, loaded for visitors who are not signed in only. A single 0.3 KB script, deferred, on the sign-in, account creation and order pages. No remote font, no call to the providers when pages are displayed.

Compatible with PrestaShop 9

Branch Module version PHP Back office
9.0 → 9.x 1.9.0 8.1 → 8.4 PrestaShop 9
1.7.6 → 8.x 1.1.0 (separate package) 7.1 → 8.4 classic

Multistore compatible. The shop must be served over HTTPS. Classic and Hummingbird themes; any theme can place the buttons through its widget and dress them through its CSS variables.

Frequently asked questions

Which PrestaShop versions does the module work with?

From PrestaShop 1.7.6 to 9.x, with PHP 7.1 to 8.4. Two versions of the module exist: 1.1 for PrestaShop 1.7 and 8, 1.9 for PrestaShop 9. The shop must be served over HTTPS.

Where do the buttons appear?

Under the login form, at the top of the account creation and at step 1 of the checkout, through the native hooks of your theme. You choose the places, the order of the providers and the layout in the settings of the module.

What do I need to create at Google and Facebook?

An application at each provider you enable. You declare there the return address shown in the settings of the module, then you paste its identifiers into the module.

Are my secrets protected?

Yes. They are typed in your back office only, encrypted in your database with the key of your shop, and never shown again.

Can a customer who already has an account use Google?

Yes. If an account already exists with the same address, the module asks for its password once to link both, then one click is enough. This check prevents someone who created an account in their name from taking it over.

Does the module create accounts without telling the customer?

No. Before any creation, a screen shows the address verified by the provider, the first and last name, and the consents and fields your shop asks for at registration.

Is Sign in with Apple planned?

Yes, in a later version. This version offers Google and Facebook.

What data does the module keep?

Only the link between the provider and the customer account. No token, no photo, no friend list. The link is deleted with the customer and appears in the export of personal data (psgdpr).

Does the module slow down my shop?

No. Nothing is called at the providers when pages are displayed: only during the login. The style sheet weighs less than 2 KB and is loaded only for visitors who are not logged in; the only script, deferred, weighs less than 0.5 KB.

Can my theme style the buttons?

Yes, through its CSS variables (corners, spacing, font), within the brand guidelines of the providers: the colours and logos of the brands stay theirs. The button texts are free in each language.

How does « Remember me » work?

Your theme places the box in its login forms. Ticked, the customer stays logged in for 30 days (from 1 to 365 days, adjustable); not ticked, the login ends when the browser closes, and after 24 hours at most. The box also works with Google and Facebook. Without the box in the theme, PrestaShop keeps its usual behaviour.

Release history

4 versions released for PrestaShop

  1. Version 1.9.1 PrestaShop 9

    Fixes

    • Changelog and documentation: Sign in with Apple appeared there as shipped. This version offers Google and Facebook; Sign in with Apple is planned for a later version.
    • Back office in Arabic on PrestaShop 9.0 and 9.2: the module page went partly under the sidebar, placed on the right. The margins are now mirrored.
  2. Version 1.9.0 PrestaShop 9

    New

    • First version: « Continue with Google or Facebook » buttons under the login form, at the top of the account creation and at step 1 of the checkout, through the native hooks; widget for the themes that place them themselves.
    • Google with OpenID Connect, Facebook with OAuth2 and the profile read through Graph on the server. Authorization code, state bound to the browser by a binding cookie and used only once, nonce, PKCE S256 for Google and Facebook.
    • Tokens checked on the server without any external library: RS256 signature with the public keys of the provider (cached 1 to 24 hours, limited refetch), issuer, audience, expiry, issue date, nonce. Facebook: token checked with debug_token, appsecret_proof.
    • Accounts: a customer is created or linked only with an email verified by the provider. An existing account with a password is linked only after this password is typed, once (five attempts at most, rate limited). A guest account is turned into a customer account. The Facebook email creates an account, it never links one.
    • Confirmation screen before any creation: native customer form of the theme (consents of the modules, fields required by the shop), first and last name prefilled, verified email read-only.
    • Login through the native API, cart kept; return to the page of origin, never to another address.
    • « Connected accounts » in My account: link and unlink a provider (POST and anti-CSRF token).
    • Back office (lnk-admin skin): providers, places, order, layout, brand variants, free texts in each language with {provider} and {shop}, test of each provider. Secrets encrypted in the database, never shown again.
    • « checkout-login » placement for the theme widget: the sign-in panel of the Information step carries its own social block, with its own title and separator, free in each language (fr/en/ar defaults, ThemeSeed seed); no native hook; back to the checkout. Closed list of placements: the widget renders nothing for an unknown name, and placed_by_theme refuses unknown values.
    • « Remember me »: box placed by the theme in its sign-in forms ({widget name='lnk_sociallogin' part='remember'}, field lnk_remember). Box ticked: the sign-in is kept 30 days (from 1 to 365, adjustable). Box not ticked: session cookie and 24 hours at most from the sign-in, then sign-out the way of the core (cart found again by the core at the next sign-in, if the core setting PS_CART_FOLLOWING is on). Also valid for the social sign-in (small deferred script, under 0.5 KB, loaded only on the sign-in, account creation and checkout pages, when a provider is active). Without the box in the theme, nothing changes. Free text in each language, seed, settings per shop.
    • Theme contract lnk.sociallogin/1 (contract.json, docs/THEME-CONTRACT.md): markup, --lnk-sociallogin-* variables, official logos, theme seed (seed.json, neutral seed in docs/seed.example.json).
    • GDPR: only the provider + subject link is kept; links deleted with the customer, access and erasure rights through psgdpr.
    • Multistore: settings and texts of each shop, copied with a duplicated shop; links within the customer scope (shop group when customers are shared).
    • Sign in with Apple: planned for a later version.
    • AI Ready: on your request, an AI assistant can read and change the providers shown (Google, Facebook), the places, the order and layout of the buttons, the style of the Google button, « Remember me » (length, box ticked by default) and the free texts of each language. It goes through the module's commands, with the same checks as the back office, and never writes SQL. PrestaShop 9: command php bin/console lnk:config lnk_sociallogin (list, export as JSON, import <file> --dry-run) and MCP tools for Ask AI (PrestaShop 9.2 with the PrestaShop MCP Server module), with the employee's rights on the module page. Identifiers and secrets of the providers never read or written: they stay apart, encrypted, typed in the back office; a provider switched on without them stays hidden. All-or-nothing import with a preview (--dry-run), a log of every write, the shop to be stated in multistore, web access to the commands and the declaration blocked. Settings and texts stored for this in the PrestaShop Configuration, per shop. Guide for the assistant or the agency: AGENTS.md; for the merchant: docs/AI-READY.en.md (fr, en, ar).
  3. Version 1.1.1 PrestaShop 1.7.6 to 8.x

    Fixes

    • Changelog and documentation: Sign in with Apple appeared there as shipped. This version offers Google and Facebook; Sign in with Apple is planned for a later version.
Show the previous version
  1. Version 1.1.0 PrestaShop 1.7.6 to 8.x

    New

    • First version: « Continue with Google or Facebook » buttons under the login form, at the top of the account creation and at step 1 of the checkout, through the native hooks; widget for the themes that place them themselves.
    • Google with OpenID Connect, Facebook with OAuth2 and the profile read through Graph on the server. Authorization code, state bound to the browser by a binding cookie and used only once, nonce, PKCE S256 for Google and Facebook.
    • Tokens checked on the server without any external library: RS256 signature with the public keys of the provider (cached 1 to 24 hours, limited refetch), issuer, audience, expiry, issue date, nonce. Facebook: token checked with debug_token, appsecret_proof.
    • Accounts: a customer is created or linked only with an email verified by the provider. An existing account with a password is linked only after this password is typed, once (five attempts at most, rate limited). A guest account is turned into a customer account. The Facebook email creates an account, it never links one.
    • Confirmation screen before any creation: native customer form of the theme (consents of the modules, fields required by the shop), first and last name prefilled, verified email read-only.
    • Login through the native API, cart kept; return to the page of origin, never to another address.
    • « Connected accounts » in My account: link and unlink a provider (POST and anti-CSRF token).
    • Back office (lnk-admin skin): providers, places, order, layout, brand variants, free texts in each language with {provider} and {shop}, test of each provider. Secrets encrypted in the database, never shown again.
    • « checkout-login » placement for the theme widget: the sign-in panel of the Information step carries its own social block, with its own title and separator, free in each language (fr/en/ar defaults, ThemeSeed seed); no native hook; back to the checkout. Closed list of placements: the widget renders nothing for an unknown name, and placed_by_theme refuses unknown values.
    • « Remember me »: box placed by the theme in its sign-in forms ({widget name='lnk_sociallogin' part='remember'}, field lnk_remember). Box ticked: the sign-in is kept 30 days (from 1 to 365, adjustable). Box not ticked: session cookie and 24 hours at most from the sign-in, then sign-out the way of the core (cart found again by the core at the next sign-in, if the core setting PS_CART_FOLLOWING is on). Also valid for the social sign-in (small deferred script, under 0.5 KB, loaded only on the sign-in, account creation and checkout pages, when a provider is active). Without the box in the theme, nothing changes. Free text in each language, seed, settings per shop.
    • Theme contract lnk.sociallogin/1 (contract.json, docs/THEME-CONTRACT.md): markup, --lnk-sociallogin-* variables, official logos, theme seed (seed.json, neutral seed in docs/seed.example.json).
    • GDPR: only the provider + subject link is kept; links deleted with the customer, access and erasure rights through psgdpr.
    • Multistore: settings and texts of each shop, copied with a duplicated shop; links within the customer scope (shop group when customers are shared).
    • Sign in with Apple: planned for a later version.
    • AI Ready: on your request, an AI assistant can read and change the providers shown (Google, Facebook), the places, the order and layout of the buttons, the style of the Google button, « Remember me » (length, box ticked by default) and the free texts of each language. It goes through the module's commands, with the same checks as the back office, and never writes SQL. PrestaShop 1.7.6 to 8: command php modules/lnk_sociallogin/bin/lnk-config.php (list, export as JSON, import <file> --dry-run), on the command line only. Identifiers and secrets of the providers never read or written: they stay apart, encrypted, typed in the back office; a provider switched on without them stays hidden. All-or-nothing import with a preview (--dry-run), a log of every write, the shop to be stated in multistore, web access to the commands and the declaration blocked. Settings and texts stored for this in the PrestaShop Configuration, per shop. Guide for the assistant or the agency: AGENTS.md; for the merchant: docs/AI-READY.en.md (fr, en, ar).

Your cart

Your cart is empty.