♻ Activate social logins
Facebook
- Visit the Facebook page for developers. If you don't have a developer account, create one.
- Click on "Create an App" in the "My Applications" tab.
- 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".

- Validate the Captcha
- On the dashboard of your app, click on "Configure" a Facebook Login. Select the "Website" option.
- Enter the URL of your platform and click on "Save".
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).
- Click on "Save Changes".
- Go to the general settings of your application, assign a category to your application and then copy the APP_ID and the APP_SECRET.
- Finally, paste the APP_ID and the APP_SECRET into your organization's configuration (/system). Make sure that the
enabled is checked.
Twitter
- Visit the Twitter page for developers.
- See you in "My apps".
- Click on the "Create a new app" button.
- Fill in the fields
Name and Description.
- 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/.
- Check the 'Developer Agreement' box and click on the "Create your Twitter application" button.
- Go to the "Access Keys and Tokens" tab and copy the API_KEY and API_SECRET.
- (Optional) Go to the "Permissions" tab and check the box "Request users' email addresses".
- Paste the certificates in
config/secrets.yml. Make sure that the attribute enabled is true.
Google
- Go to the Google Developer page.
- Follow the link "Create a project".
- Enter the name of your application.
- Go to the project dashboard and click on "Activate API".
- Click on
Google+ API then click "Activate".
- Go to the project certificates page and click on
OAuth consent screen.
- Fill in the field
Product name.
- Click on the
Certificates then on the "Create certificates" button. Select OAuth client ID.
- 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.
- Copy the CLIENT_ID and CLIENT_SECRET.
- Paste the certificates in
config/secrets.yml. Make sure that the attribute enabled is true.