[英]How to include scope parameters in Fb login button
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. fb登录也以这种方式使用javascript。
Is there a way i can add the scope directly to the button without calling the scope in js. 有没有一种方法可以将范围直接添加到按钮,而无需在js中调用范围。
FB.login(function(response) {
testAPI();
}, {scope: 'email,user_likes,username,publish_stream'});
代替范围尝试数据范围:
<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>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.