我在使用我们网站的javascript登录FB帐户时遇到问题。 登录很简单,我们定义了范围:email,user_birthdate,......我们需要什么。
在一台服务器上,我可以获得我们需要的所有信息,另一项基本信息,即:生日缺失和家乡。 有什么方法可以防止这种情况吗?可能是我错过了一些东西。 谢谢你的建议。
window.fbAsyncInit = function() {
FB.init({
appId : fb_app_id, // App ID
apiKey : fb_app_secret,
channelURL : '', // Channel File, not required so leave empty
status : false, // check login status
cookie : true, // enable cookies to allow the server to access the session
oauth : true, // enable OAuth 2.0
xfbml : true, // parse XFBML
frictionlessRequests : true
});
function login(){
FB.getLoginStatus(function(response){
if(response.status === 'connected'
|| response.authResponse != null){
FB_response(response);
}
else{
FB.login(function(response) {
if(response.authResponse) {
//alert('connected' );
FB_response(response);
}
else {
// user is not logged in
}
},{scope:'email, user_about_me, user_birthday, user_hometown, user_location'});
}
});
}
答案 0 :(得分:1)
我猜您尝试使用不同的用户...应用的所有管理员/测试人员/开发人员用户都可以在不审核应用的情况下提供他们的权限。所有其他用户都不能,因此您只能看到基本信息。
见