♻ Activate social logins

Facebook

  1. Visit the Facebook page for developers. If you don't have a developer account, create one. 
  2. Click on "Create an App" in the "My Applications" tab.
  3. In the modal that appears, enter the Name of your platform as well as the contact email address, then click on "".Create an app ID".
  4. Validate the Captcha
  5. On the dashboard of your app, click on "Configure" a Facebook Login. Select the "Website" option. 
  6. Enter the URL of your platform and click on "Save".
  7. In the settings of your Facebook Login, fill in the URI redirection field with https://YOUR_DECIDIM_HOST/users/auth/facebook/callback (YOUR_DECIDIM_HOST is the URL of your organization).
  1. Click on "Save Changes".
  2. Go to the general settings of your application, assign a category to your application and then copy the APP_ID and the APP_SECRET.
  3. Finally, paste the APP_ID and the APP_SECRET into your organization's configuration (/system). Make sure that the enabled is checked.

Twitter

  1. Visit the Twitter page for developers.
  2. See you in "My apps".
  3. Click on the "Create a new app" button.
  4. Fill in the fields Name and Description.
  5. Fill in the fields Website and Callback URL with the same value. If you are working on a development app, you should use http://127.0.0.1:3000/ rather than http://localhost:3000/.
  6. Check the 'Developer Agreement' box and click on the "Create your Twitter application" button.
  7. Go to the "Access Keys and Tokens" tab and copy the API_KEY and API_SECRET.
  8. (Optional) Go to the "Permissions" tab and check the box "Request users' email addresses".
  9. Paste the certificates in config/secrets.yml. Make sure that the attribute enabled is true.

Google

  1. Go to the Google Developer page.
  2. Follow the link "Create a project".
  3. Enter the name of your application.
  4. Go to the project dashboard and click on "Activate API".
  5. Click on Google+ API then click "Activate".
  6. Go to the project certificates page and click on OAuth consent screen.
  7. Fill in the field Product name.
  8. Click on the Certificates then on the "Create certificates" button. Select OAuth client ID.
  9. Select Web applications. Fill out Authorized Javascript origins with your url. Then fill in Authorized redirect URIs with your url and add the path /users/auth/google_oauth2/callback.
  10. Copy the CLIENT_ID and CLIENT_SECRET.
  11. Paste the certificates in config/secrets.yml. Make sure that the attribute enabled is true.

Still need help? Contact us Contact us