I have been trying to add scope parameters using the below code.
When i add scope the button is not rendered. If i remove the scope then the button is rendered.
<div class="fb-login-button" data-max-rows="1" data-size="medium" data-show-faces="false" data-auto-logout-link="false" ></div>
<div class="fb-login-button" data-max-rows="1" data-size="medium" data-show-faces="false" data-auto-logout-link="false" scope="email,username" ></div>
fb login also makes use of javascript in such fashion.
Is there a way i can add the scope directly to the button without calling the scope in js.
FB.login(function(response) {
testAPI();
}, {scope: 'email,user_likes,username,publish_stream'});
Instead of scope try data-scope:
<div class="fb-login-button" data-max-rows="1" data-size="medium" data-show-faces="false" data-auto-logout-link="false" data-scope="email,user_birthday" ></div>
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments