2011-03-13 198 views

回答

0

未經他們的明確許可,您無法獲得您的朋友的電子郵件地址。他們必須使用「電子郵件」權限授權您的應用程序。

查看Facebook Authentication Permissions page瞭解更多詳情。在這裏,您會在電子郵件權限的「朋友權限」列中看到「不可用」。

至於生日,您需要「friends_birthday」權限。

添加權限的最簡單方法是使用JavaScript library認證

1

好了,我怎麼以下,而不使用FB-登錄按鈕? 我想在我的網站上使用額外的燙髮。

FB.login(function(response) { 
    if (response.session) { 
    if (response.perms) { 
     // user is logged in and granted some permissions. 
     // perms is a comma separated list of granted permissions 
    } else { 
     // user is logged in, but did not grant any permissions 
    } 
    } else { 
    // user is not logged in 
    } 
}, {perms:'read_stream,publish_stream,offline_access'});