Social providers integration
If you want to enable sign up through social providers like Facebook you will need to generate app credentials and write them into the Rails secrets file: config/secrets.yml.
- Navigate to Facebook Developers Page
- Follow the "Add a New App" link.
- Click the "Website" option.
- Fill in your application name and click "Create New Facebook App ID" button.
- Fill in the contact email info and category.
- Validate the captcha.
- Ignore the source code and fill in the URL field.
- Navigate to the application dashboard and copy the APP_ID and APP_SECRET
- Paste credentials in
config/secrets.yml. Ensure theenabledattribute istrue.
- Navigate to Twitter Developers Page
- Follow the "My apps" link.
- Click the "Create New App" button.
- Fill in the
Name,Descriptionfields. - Fill in the
WebsiteandCallback URLfields with the same value. If you are working on a development app you need to usehttp://127.0.0.1:3000/instead ofhttp://localhost:3000/. - Check the 'Developer Agreement' checkbox and click the 'Create your Twitter application' button.
- Navigate to the "Keys and Access Tokens" tab and copy the API_KEY and API_SECRET.
- (Optional) Navigate to the "Permissions" tab and check the "Request email addresses from users" checkbox.
- Paste credentials in
config/secrets.yml. Ensure theenabledattribute istrue.
- Navigate to Google Developers Page
- Follow the 'Create projecte' link.
- Fill in the name of your app.
- Navigate to the projecte dashboard and click on "Enable API"
- Click on
Google+ APIand then "Enable" - Navigate to the project credentials page and click on
OAuth consent screen. - Fill in the
Product namefield - Click on
Credentialstab and click on "Create credentials" button. SelectOAuth client ID. - Select
Web applications. Fill in theAuthorized Javascript originswith your url. Then fill in theAuthorized redirect URIswith your url and append the path/users/auth/google_oauth2/callback. - Copy the CLIENT_ID AND CLIENT_SECRET
- Paste credentials in
config/secrets.yml. Ensure theenabledattribute istrue.