Skip to content

Commit

Permalink
fix: #52
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Feb 16, 2019
1 parent 04be2e5 commit 0e4306f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library.js
Expand Up @@ -29,7 +29,9 @@
var hostHelpers = require.main.require('./src/routes/helpers');

function render(req, res) {
res.render('admin/plugins/sso-facebook', {});
res.render('admin/plugins/sso-facebook', {
baseUrl: nconf.get('url'),
});
}

params.router.get('/admin/plugins/sso-facebook', params.middleware.admin.buildHeader, render);
Expand Down
11 changes: 11 additions & 0 deletions templates/admin/plugins/sso-facebook.tpl
Expand Up @@ -8,6 +8,17 @@
<a href="https://developers.facebook.com/apps/">Facebook Developers Page</a> and
then paste your application details here.
</p>
<ul>
<li>
You will need to enable <strong>"Client OAuth Login"</strong> and <strong>"Web OAuth Login"</strong>
from the "Facebook Login" product
</li>
<li>
You will need to paste <code>{baseUrl}/auth/facebook/callback</code> into the
<strong>"Valid OAuth Redirect URIs"</strong> field.
</li>
</ul>
</p>
<form role="form" class="sso-facebook-settings">
<div class="form-group">
<label for="app_id">Application ID</label>
Expand Down

0 comments on commit 0e4306f

Please sign in to comment.