{{ ta('plugin_name_settings', '[[[PLUGIN_NAME]]] Settings', {'PLUGIN_NAME': pluginName}) }}

{{ msg_page_notifications|raw }}

{{ ta('plugin_state', 'Plugin State') }}

{{ ta('whether_this_plugin_is_enabled', 'Whether this plugin is enabled.') }}

{{ ta('facebook', 'Facebook') }}

{{ ta('whether_to_allow_facebook_logins_and_your_api_details', 'Whether to allow Facebook logins and your API details.') }}

{{ ta('sociallogin_facebook_guidance', '
  1. Go to https://developers.facebook.com/apps and create a new application.
  2. Select "For Everything Else" in the popup.
  3. Fill out any required fields such as the application name and description. Click "Create App ID".
  4. On the new application details page, go to the "Add a Product" section, find "Facebook login" and click "Set Up".
  5. On the following screen select "www" web.
  6. Set \'Site Url\' as:
    [[[WEB_ROOT]]]
  7. Click "Continue"/"Next" until you get to "Step 5".
  8. Click "Settings" on the left for "Facebook login". Set the "Valid OAuth Redirect URIs" as below:
    [[[PLUGIN_WEB_ROOT]]]/sociallogin/login/Facebook
  9. Click "Settings" > "Basic" on the left (under "Dashboard". Set the "App Domains" to:
    [[[_CONFIG_SITE_HOST_URL]]]
  10. Set \'Contact Email\' as your website email address.
  11. Set \'Privacy Policy URL\' to:
    [[[WEB_ROOT]]/privacy
  12. Set \'Terms of Service URL\' to:
    [[[WEB_ROOT]]/terms
  13. Once you have finished, save then copy and paste the created application credentials into the fields above.
  14. Click on \'Status & Review\' and set \'Do you want to make this app and all its live features available to the general public?\' to \'YES\'.
', {'WEB_ROOT': WEB_ROOT, 'PLUGIN_WEB_ROOT': PLUGIN_WEB_ROOT, '_CONFIG_SITE_HOST_URL': ConfigHelper.getSiteHostURL()})|raw }}

{{ ta('X_com', 'X.com (Twitter)') }}

{{ ta('whether_to_allow_x_com_logins_and_your_api_details', 'Whether to allow X.com (Twitter) logins and your API details.') }}

{{ ta('sociallogin_twitter_guidance', '
  1. Go to https://dev.twitter.com/apps and create a new application.
  2. If you don\'t have a developers account, you may need to apply for this before you can create any apps.
  3. Fill out any required fields such as the application name and description.
  4. Set the\'Website URL\' as:
    [[[WEB_ROOT]]]
  5. Set the \'Callback URL\' as:
    [[[PLUGIN_WEB_ROOT]]]/sociallogin/login/Twitter
  6. Set the \'Terms of Service URL\' as:
    [[[WEB_ROOT]]]/terms
  7. Set the \'Privacy Policy URL\' as:
    [[[WEB_ROOT]]]/privacy
  8. Click the \'Create\' button.
  9. Once created, open the "Permissions" tab. Edit the the permissions and set "Access permission" to read only.
  10. On the same permissions screen, ensure you check "Request email address from users" in "Additional permissions". Click "Save".
  11. Open the \'Keys and tokens\' tab of the application and copy & paste the application credentials above.
', {'WEB_ROOT': WEB_ROOT, 'PLUGIN_WEB_ROOT': PLUGIN_WEB_ROOT, '_CONFIG_SITE_HOST_URL': ConfigHelper.getSiteHostURL()})|raw }}

{{ ta('google', 'Google') }}

{{ ta('whether_to_allow_google_logins_and_your_api_details', 'Whether to allow Google logins and your API details.') }}

{{ ta('sociallogin_google_guidance', '
  1. Go to https://code.google.com/apis/console/ and create a new project.
  2. Fill out any required fields such as the project name.
  3. Once created, view the project page.
  4. Go to the "OAuth consent screen" page linked on the left and select "External". Click "Create".
  5. Set the application name and a logo.
  6. Set the following in "Authorised domains":
    [[[_CONFIG_SITE_HOST_URL]]]
  7. Set the following in "Application Homepage link":
    [[[WEB_ROOT]]]
  8. Set the following in "Application Privacy Policy link":
    [[[WEB_ROOT]]]/privacy
  9. Set the following in "Application Terms of Service link":
    [[[WEB_ROOT]]]/terms
  10. On the left menu select "Domain verification" and "Add domain". Enter the domain and click "Add domain": [[[_CONFIG_SITE_HOST_URL]]]
  11. Once verified, go back to the "Domain verification" page and ensure it\'s listed.
  12. In the project click on "Credentials" on the left menu, then "Create Credentials" near the top-middle of the page. Select "OAuth client ID".
  13. Set the "Application type" as "Web application". Add "Authorised redirect URIs" as below and click "Create": [[[PLUGIN_WEB_ROOT]]]/sociallogin/login/Google
  14. Copy the client ID and Secret in the fields above.
  15. You will need to submit your application for approval so it\'s not limited to 100 logins.
', {'WEB_ROOT': WEB_ROOT, 'PLUGIN_WEB_ROOT': PLUGIN_WEB_ROOT, '_CONFIG_SITE_HOST_URL': ConfigHelper.getSiteHostURL()})|raw }}