Log In
Status:
waiting
|
Disconnect
|
Logout
<h1>Requesting Additional Permissions</h1> <p>You can request additional permissions from anyone using your Facebook Login integration, to perform additional tasks on their behalf, or have the ability to see different parts of their profile.</p> <h2>Using FB.login()</h2> <p>This example adds some additional permissions to the basic login function shown in an earlier example:</p> <a href="#" id="login-btn">Log in with Facebook</a> <script> document.getElementById('login-btn').onclick = function() { FB.login(function(response) { Log.info('FB.login response', response); }, {scope: 'email, pages_show_list'}); return false; } </script> <h2>Using the Login Button</h2> <p>You can also use the <a href="https://developers.facebook.com/docs/plugins/login-button/">Login Button social plugin</a> to request additional permissions:</p> <div class="fb-login-button" data-scope="email, manage_pages" data-max-rows="1" data-size="medium"></div> <h3>Related Guides</h3> <p>Read <a href="https://developers.facebook.com/docs/facebook-login/login-flow-for-web/">our guide to using the JavaScript SDK for Facebook Login</a> to see the best way to use Facebook Login.</p>
Examples
Website
Website
Canvas
Page Tab
Run Code
Clear