Social login issue on wpml multi-domain config

This topic has 2 replies, 2 voices, and was last updated 3 weeks, 4 days ago ago by Andrew Mitchell

  • Avatar: javi_web
    javi_web
    Participant
    September 14, 2026 at 06:05

    Hello,
    As the subject says, our website is served one language by domain. It’s a standard configuration option for WPML.
    So, in order to make available social login in all domains, how can I do that? Because each domains needs is own config data (a different APP ID).

    Let me know if you need anything else.

    Thank you.
    Best Regards,
    Javi.

    1 Answer
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    September 15, 2026 at 09:58

    Hello, Javi,

    When using WPML with a “different domain per language” configuration, social login services (like Facebook or Google) require each domain to be authorized because of CORS and OAuth redirect URIs restrictions.

    Depending on the social login plugin you are using, here are the best ways to set this up:

    Single OAuth App Approach (Recommended):
    For most providers (such as Facebook Apps or Google Cloud Console), you do not need to create separate App IDs. Instead, in your developer console for that app, add all your language domains to the Allowed Redirect URIs / Authorized Domains list (e.g., domain.com, domain.es, domain.fr). This allows a single App ID to work across all WPML domains.
    Multiple App IDs Approach (If required by the plugin):
    If your social login plugin forces you to define a single domain per App ID, you can make the settings dynamic by translating the plugin’s option names using WPML String Translation:
    1. Go to WPML > String Translation.
    2. Scroll down and click Translate texts in admin pages (at the bottom left).
    3. Search for your social login plugin’s settings (e.g., App ID or plugin option key).
    4. Select the option, save it, and then add the domain-specific App ID for each language in WPML > String Translation.

    If you’re using a specific social login plugin, let us know its name so we can give you exact configuration steps.

    Best Regards,
    8Theme’s Team

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.