Website Building » Shopify » How Do I Log Into Facebook With Shopify?

How Do I Log Into Facebook With Shopify?

Last updated on January 9, 2023 @ 5:35 pm

Assuming you have a Shopify account (if not, create one here), here are the steps to connect your Shopify account with Facebook:

    1.) Log into your Shopify account.

    2.) Click on Online Store in the left-hand side menu, then click on Themes.

    3.) Find the theme you’re using and click on Actions, then Edit Code.

    4.) In the Layout folder, click on theme.liquid.

    5.) Find the {{ content_for_header }} line of code and immediately below it, add the following code:

    <meta name=“viewport” content=“width=device-width, initial-scale=1" />
          <script src="https://connect.facebook.net/en_US/all.js#xfbml=1"></script>

    6.) Save your changes.

    7.) Now that you’ve edited your theme code, you need to add a Facebook Login button to your shop.
    The easiest way to do this is to use an app from the Shopify App Store.

    8.) Go to the Shopify App Store, and search for “social login.”

    9.) Install an app (we recommend Login with Facebook by Customers Addon) and follow the instructions to set it up.

PRO TIP: If you are using Shopify to manage your Facebook account, be aware that there is a known issue with the Facebook Login button. If you click the Login button, you may be taken to a blank page. To workaround this issue, please log in to Facebook first, and then visit your Shopify account.
Dale Leydon

Dale Leydon

Sysadmin turned Javascript developer. Owner of 20+ apps graveyard, and a couple of successful ones.