All Collections
Loyalty Program
Social Login
How to Customize Google, Facebook, and LINE Login App?
How to Customize Google, Facebook, and LINE Login App?
J
Written by Joanne Chai
Updated over a week ago

πŸ’› This feature is available in our FREE Starter Plan, navigate to More > Service Plans and check if you have subscribed to the Starter Plan or above.

Introduction

When members and visitors use Akohub's social login feature to log in, they will see a screen to log in with their social accounts. By default, it shows Akohub's logo and name. In this article, we will guide you on how to customize the login screens by adding your own logo and name, providing a more consistent login experience for your members.


Custom Google Login

STEPS:

  1. Create your Google Cloud Platform project at this link: https://console.cloud.google.com

  2. Navigate to OAuth consent screen on the sidebar, select External as the user type and click the Create button.

  3. Customize your login screen in the OAuth consent screen: https://console.cloud.google.com/apis/credentials/consent, you will need to provide the following information:

    1. In the App name field, enter your brand name and provide a user support email.

    2. Upload your brand logo.

    3. In the App domain section, enter the URLs for your homepage, privacy policy, and terms of service.

    4. In the Authorized domains field, enter your website URL without specifying the scheme (http:// or https://)

    5. Provide an email address where Google can notify you in the Developer contact information section.

    6. Click Save and continue button to submit this form and wait for the app verification.

  4. Go to the Credentials page: https://console.cloud.google.com/apis/credentials and click Create credentials > select OAuth client ID.

  5. Select Web application from the application type menu.

  6. Follow these steps to add the necessary information:

    1. Provide a name for your OAuth 2.0 client. This name is only used to identify the client in the console and will not be shown to your customers.

    2. Copy the URL "https://app.akohub.com" and paste it into the Authorized JavaScript origins field.

    3. Copy the URL "https://app.akohub.com/social/google/oauth" and paste it into the Authorized redirect URIs field.

    4. Click on the Create button.

  7. Once you have created the OAuth client, you will receive a Client ID and Client Secret. Please copy them for the next step.

  8. From Ako Marketing dashboard, navigate to Settings > Social Login > open the Custom App section for Google. Paste the Client ID and Client Secret into the fields here.


Custom Facebook Login

STEPS:

  1. Create a Facebook app at this link: https://developers.facebook.com/apps

  2. Follow the steps to complete the settings: https://developers.facebook.com/docs/development/create-an-app

  3. Type your brand name in the Display name. It will be shown in the Facebook login popup window to your customers.

  4. Type "app.akohub.com" and your shop's domain in the App domains.

  5. Type the privacy policy URL of your shop in the Privacy Policy URL and the User data deletion.

  6. Type the terms of service URL of your shop in the Terms of Service URL.

  7. Upload your brand's logo in the App Icon.

  8. Type your shop's URL in the Website > Site URL.

  9. In the Facebook Login > Settings, please enter the callback URL: "https://app.akohub.com/social/facebook/oauth" in the field called Valid OAuth Redirect URIs.

  10. After you have obtained the App ID and App Secret, go to the Custom App section under Settings in Ako Marketing. Copy the App ID and App Secret, then paste them into the correct fields.


Custom LINE Login

STEPS:

  1. Create a Line developer account: https://developers.line.biz/console

  2. Create a new Provider and a new Channel.
    ​

  3. Choose the Line Login.

  4. Fill in the Channel name, Channel description, Email address, Privacy policy URL, and Terms of use URL. Choose the Web app as the App types.

  5. At the LINE Login tab, please enable Use LINE login in your web app and type https://app.akohub.com/social/line/oauth in the Callback URL field.
    ​

  6. Please apply for the Email address permission in the OpenID Connect. You can follow the tutorial provided at this link: https://developers.line.biz/en/docs/line-login/integrate-line-login/#applying-for-email-permission and complete the submission process. When asked to upload a screenshot, you can simply upload your brand logo for submission.
    ​

  7. Once you have obtained the Channel ID and Channel Secret, go to the Custom App section under Settings in Ako Marketing. Copy the Channel ID and Channel Secret, then paste them into the correct fields.
    ​

Did this answer your question?