Log In
Status:
waiting
|
Disconnect
|
Logout
<h1>Requesting Business Asset Access Tokens</h1> <p>You can request Business Asset Access Tokens from anyone using your Facebook Login integration.</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">Request Business Asset Access Token(s)</a> <script> document.getElementById('login-btn').onclick = function() { FB.login(function(response) { Log.info('FB.login response', response); }, {asset_scope: 'pages_messaging'}); 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-asset-scope="pages_messaging" 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