2010-10-25 66 views

回答

0

你不能。但是你可以要求用戶在他/她登錄到它提供

有可以從用戶表採取proxied_email,你可以嘗試:

$personArray = $facebook->api_client->users_getInfo($fb_config->user_id, "last_name, first_name, birthday, hometown_location, current_location, is_app_user, proxied_email"); 
$email = $personArray[0]['proxied_email']; 
if(empty($email)){ 
    echo 'Proxied email was not retreived. Trying fql query...'; 
    $facebookFQLResultXml = $facebook->api_client->fql_query("SELECT proxied_email FROM user WHERE uid=".$fb_config->user_id); 
    $email = $facebookFQLResultXml['proxied_email']; 
} 

但我不知道的結果

所以,你可以得到代理的電子郵件,並通過它聯繫用戶,但你 不能提取原始電子郵件:

proxied_email - A proxied wrapper alternative for contacting the user through email, 

而不是直接調用notifications.sendEmail。如果用戶與您分享了他或她的代理電子郵件地址,該地址也會顯示在電子郵件字段中(請參閱下文)。

http://developers.facebook.com/docs/reference/rest/users.getInfo

+1

但如何http://www.formspring.me(註冊與Facebook),是獲取電子郵件地址? – Sandesh 2010-10-25 12:41:16

相關問題