Configuring Social Login
Make sure APP_URL in /.env file matches your site url. It should be set automatically, but you might need to do it manually in some rare cases.
- Register for regular Facebook account, if you don't already have one.
- Open this url, and Create a New App.
- Get the new app settings.
Now, you have to setup your admin panel:
- Go to your Admin panel → Settings → General → Social Login
- For Facebook: set 'Facebook Client ID' and 'Facebook Client Secret'
- And save your changes.
- You are done.
Or place all the config values or API keys in the /.env file.
Facebook example in /.env file
FACEBOOK_CLIENT_ID=your-facebook-client_id
FACEBOOK_CLIENT_SECRET=your-facebook-client_secret
NOTE:
- The
/.envfile settings override those of the admin panel. - The "OAuth redirect URI" is:
APP_URL/auth/facebook/callback - Don't forget to replace
APP_URLby its value (that can be found in the/.envfile). Example:https://domain.tld/auth/facebook/callback
- Register for regular LinkedIn account, if you don't already have one.
- Open this url, and Create a New App.
- Get the new app settings.
Now, you have to setup your admin panel:
- Go to your Admin panel → Settings → General → Social Login
- For LinkedIn: set 'LinkedIn Client ID' and 'LinkedIn Client Secret'
- And save your changes.
- You are done.
Or place all the config values or API keys in the /.env file.
LinkedIn example in /.env file
LINKEDIN_CLIENT_ID=your-linkedin-client_id
LINKEDIN_CLIENT_SECRET=your-linkedin-client_secret
NOTE:
- The
/.envfile settings override those of the admin panel. - The "OAuth redirect URI" is:
APP_URL/auth/linkedin/callback - Don't forget to replace
APP_URLby its value (that can be found in the/.envfile). Example:https://domain.tld/auth/linkedin/callback
- Register for regular Twitter account, if you don't already have one.
- Open this url, and Create a New App.
- Get the new app settings.
Now, you have to setup your admin panel:
- Go to your Admin panel → Settings → General → Social Login
- For Twitter: set 'Twitter Client ID' and 'Twitter Client Secret'
- And save your changes.
- You are done.
Or place all the config values or API keys in the /.env file.
Twitter example in /.env file
TWITTER_CLIENT_ID=your-twitter-client_id
TWITTER_CLIENT_SECRET=your-twitter-client_secret
NOTE:
- The
/.envfile settings override those of the admin panel. - The "OAuth redirect URI" is:
APP_URL/auth/twitter/callback. And before configuring your Twitter app in the script, you have to change its Permissions (on developer.twitter.com) by enabling the "Request email address from users" option. - Don't forget to replace
APP_URLby its value (that can be found in the/.envfile). Example:https://domain.tld/auth/twitter/callback
Google (deprecated)
- Register for regular Google account, if you don't already have one.
- Open this url, and Create a New App.
- Get the new app settings.
Now, you have to setup your admin panel:
- Go to your Admin panel → Settings → General → Social Login
- For Google: set 'Google Client ID' and 'Google Client Secret'
- And save your changes.
- You are done.
Or place all the config values or API keys in the /.env file.
Google example in /.env file
GOOGLE_CLIENT_ID=your-google-client_id
GOOGLE_CLIENT_SECRET=your-google-client_secret
NOTE:
- The
/.envfile settings override those of the admin panel. - The "Authorized Redirect URI" is:
APP_URL/auth/google/callback - Don't forget to replace
APP_URLby its value (that can be found in the/.envfile). Example:https://domain.tld/auth/google/callback