真的很奇怪,我在Google上做了一些搜索,我做了一些測試,也用不同的方式登錄,但是我總是有同樣的結果。爲什麼Facebook登錄在權限中忽略電子郵件和user_birthday?
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<fb:login-button autologoutlink="true" perms="email,user_birthday,user_hometown" size="large" onlogin="window.location = '/index.php';">Connect with Facebook</fb:login-button>
</div>
<script>
FB.init({appId: 'xxxxxx', status: true,cookie: true, xfbml: true});
FB.Event.subscribe('auth.login', function(response)
{
window.location.reload();
});
</script>
似乎電子郵件和user_birthday被忽略:Facebook不要求用戶授予我訪問這些信息的權限。
在下面的示例中,我收到提示只是爲了授權家鄉,如果我刪除家鄉,我將不會收到任何提示,我將只能訪問基本信息。
爲什麼會發生?有辦法要求這些信息是強制性的嗎?
我也試着用$facebook->getLoginUrl
使用正確的範圍,但結果相同。
我希望有人能夠提供幫助。
在此先感謝。
謝謝......改變範圍似乎工作......也許我找到了一個老例子。 – user1812102