Search Results :

×

SSO into Shopify using Facebook as IDP (OAuth) | Shopify Facebook SSO

Shopify integration with Facebook allow your customers to login to the store using facebook as an identity provider. Here the Facebook works as an OAuth provider for Shopify SSO application using miniOrange as an Identity Broker. In this guide we will see how to implement Facebook Single Sign-On (SSO) solution on your Shopify store in the easiest way.

Our solution also supports advanced features such as user profile attribute mapping and role mapping, making it a breeze to manage user access. In this guide, we’ll walk you through how to configure Facebook SSO for user authentication in Shopify. By the end, your users will be able to log in securely and access your Shopify store with their Facebook credentials.

Want to explore more features of the Shopify Single Sign-On app? Click here to learn more.

  • To Setup SSO into Shopify store using Facebook as IDP (OAuth), you will need to add Shopify Single Sign-On (SSO) application on your Store.
  • Go to your Shopify store & navigate to the App section and click on Single Sign On - SSO login application.
navigate to Shopify SSO application from Apps section

  • Click on the Add Identity Provider button to add your IDP.
Shopify Facebook SSO Login - Shopify Facebook SSO - Add IDP

  • Select OAuth 2.0 protocol.
Shopify Facebook SSO Login - Shopify Facebook SSO - Select OAuth 2.0 protocol

  • Now choose Facebook from the list of IDPs.
Shopify Facebook SSO Login - Shopify Facebook SSO - Choose Face IDP

  • Copy the OAuth Callback URL and keep it handy as it will be used in further steps.
Shopify Facebook SSO Login - Shopify Facebook SSO - Copy Callback URL

You have successfully obtained the Callback URL (Redirect URI) from Shopify.

  • To get started, Go to Facebook developers console click here and sign up/Login with your facebook developer account.
Shopify Facebook SSO Login - Shopify Facebook SSO - facebook developer login

  • Go to the Facebook Developers apps page and click the Create App button to add new app.
Shopify Facebook SSO Login - Shopify Facebook SSO - create facebook app

  • Then choose the Allow people to log in with their Facebook account option as use case and then click Next.
Shopify Facebook SSO Login - Shopify Facebook SSO - social login app options

  • Enter the App Name and Add Contact Email for your Facebook app respectively then click on Create App button to save your settings.
Shopify Facebook SSO Login - Shopify Facebook SSO - facebook social login app detials

  • Go to App Settings -> Basic to view your App Id and App Secret. The App ID is your Client ID and the App Secret is your Client Secret, keep these values handy as you will need them later to configure the Shopify Single Sign-On SSO application (Refer to the images below).
  • App Domain: Write your website’s domain there.
  • Privacy Policy URL: Fill in this box with the URL liked to your website’s privacy policy page.
  • Terms of Service: Fill in this box with the URL linked to your website’s terms of service page.
  • User Data Deletion: From the drop down, select Data Deletion Instruction URL (Enter the URL of your page with the instructions on how users can delete their accounts on your site).
  • Choose a Category from the dropdown in the Category field and pick the App Purpose option that describes your App the best, then press Save Changes to save your configurations.
Shopify Facebook SSO Login - Shopify Facebook SSO - facebook basic info
Shopify Facebook SSO Login - Shopify Facebook SSO - facebook basic info

  • Now scroll down and click on Add Platform button. Select the Website option as you are trying to integrate your Facebook Login with a website. Click on Next.
Shopify Facebook SSO Login - Shopify Facebook SSO - facebook app review tab permissions

  • Next, enter your Shopify Store URL (store.xecurify.com) and click Save. Then, click Continue.
Shopify Facebook SSO Login - Shopify Facebook SSO - Enter Site URL

  • Click on the Use cases tab on the left side and then click on the Customize button that appears next to the Authentication and account creation item.
Shopify Facebook SSO Login - Shopify Facebook SSO - facebook request advance access

  • Below the Permissions section, find the email permission and click on the Add button.
  • By default, your application only has Standard Access for the “public_profile” and “email” permissions, which means that only you can log in with it. To get Advanced Access you will need to go trough the Business Verification, that you can start on the Verification tab on the left side.
Shopify Facebook SSO Login - Shopify Facebook SSO - facebook developer status

  • Under the Facebook Login >> settings section click on Go to
  • settings button to add the Redirect/Callback URL (from Step 1).
Shopify Facebook SSO Login - Shopify Facebook SSO - facebook complete data checkup

  • Into the Valid OAuth redirect URIs field add the Redirect/Callback URL which you will get from the Shopify Single Sign-On (SSO) application. Click on Save changes button.
Shopify Facebook SSO Login - Shopify Facebook SSO - facebook enable advance permission

  • Currently your app is in Development Mode which also means that people outside of your business can not use it. Once your verification is completed, click on the Go live tab and publish your app by clicking on the Go live button at the bottom right corner. Before you press it, it is recommended to check the steps listed on the “Go live” page, if you configured everything properly.
Shopify Facebook SSO Login - Shopify Facebook SSO - enable advance permission

You have successfully configured Shopify as Service Provider into Facebook Application.

  • Navigate back to the Shopify Single Sign On-SSO application and fill in the required details like Client ID, Client Secret, Endpoints, and Scope.
  • Please refer to the below table for configuring the values.
Shopify Facebook SSO Login - Shopify Facebook SSO -

    App Name: Facebook
    Client ID: From Step 2
    Client Secret: From Step 2
    Authorize Endpoint: https://www.facebook.com/dialog/oauth
    Access Token Endpoint: https://graph.facebook.com/v2.8/oauth/access_token
    Get User Info Endpoint: https://graph.facebook.com/me/?fields=id,name,email,age_range,first_name,gender,last_name,link
    Scope: public_profile email
  • Click on Next.

You have now completed the configuration for Facebook as IDP (OAuth) into your Shopify SSO Application.

  • After saving the IDP configuration, you will be redirected to the Test Connection step. Perform a test connection before mapping or fetching attributes, a test connection ensures that your IDP configuration is correct.
  • Click on the Test Connection button.
Shopify Facebook SSO - Shopify Facebook login - Click on Test Connection Button

  • On entering valid IDP credentials you will see a pop-up window which is shown in screen below.
Shopify Facebook SSO - Shopify Facebook login - Enter IDP Credentials

  • Click on the Fetch Attributes to fetch the IDP attribute.
Shopify Facebook SSO - Shopify Facebook login - Fetch IDP Attributes

  • Click on the + Attribute Mapping button to map attributes between Shopify and your IDP.
Shopify Facebook SSO - Shopify Facebook login - Attribute Mapping

  • Map the attributes by referring the table below:
Shopify Facebook SSO - Shopify Facebook login - Map Attributes from table

    Attribute Name in Shopify Choose the attribute from the list of predefined attributes
    Attribute Type IDP Attribute
    Attribute Value Select the attribute value you have fetched from your IDP
  • Click on Save.
  • Navigate to the application home page. Click More actions against the configured IDP, and click on Make Default to set your IDP as default.
Shopify Facebook SSO - Shopify Facebook login - Make Facebook Application Default

  • Go to your Shopify Store login page. (https://<your-shopify-storedomain>/account/login)
  • Click on the login button you customized earlier.
Shopify Facebook SSO - Shopify Facebook login - Click on login button

  • You’ll be redirected to the login page of the IDP you configured in the previous step. Log in with your IDP account credentials.
  • You’ll be successfully logged in to your Shopify store.

Hence you have configured Shopify Single Sign-On (SSO) using Facebook as IDP and Shopify as a Service Provider. using the Shopify Single Sign-On (SSO) login application. This solution ensures that you are ready to roll out secure access to your Shopify store using Facebook login credentials within minutes.


Please reach out to us at shopifysupport@xecurify.com, and our team will assist you with setting up the Shopify Inventory Sync application. Our team will help you to select the best suitable solution/plan as per your requirement.

ADFS_sso ×
Hello there!

Need Help? We are right here!

support
Contact miniOrange Support
success

Thanks for your inquiry.

If you dont hear from us within 24 hours, please feel free to send a follow up email to info@xecurify.com