顯示廣告
隱藏 ✕
看板 dinos
作者 dinos(守護神)
標題 [轉錄][請益] 可以取得Facebook好友的email嗎
時間 2012年05月23日 Wed. AM 11:56:56


※ 本文轉錄自 dinos 信箱

看板 PHP
作者 knives ()
標題 [請益] 可以取得Facebook好友的email嗎
時間 Mon Dec 19 12:54:16 2011


如題

請問透過Facebook的API,可以取得好友的email嗎

老闆看到Netlog可以取得,所以請我研究

可是我發現Netlog在存取資料的時候,User需要另外輸入Facebook的帳密

請問除了那種方式,有辦法取得好友的Email ,Google好久,都沒找到

謝謝回答

--
 ◢██  
             
   ◢     
   □︵□ 
   ◥         ㄤ ㄤ ㄤ 洨叮噹幫我實現~所有的~願望~~
 ●     

--
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.126.209.219
terrybob:可以取得。應用程式取得使用者的好友的email權限即可1F 12/19 13:02
terrybob:權限關鍵字就上fb的官網查囉
knives:我查一下,謝謝3F 12/19 13:24
knives:http://0rz.tw/VmIYZ 我查了這裡,上面的好友Email權限是寫
Log In | Facebook
Facebook is a social utility that connects people with friends and others who work, study and live around them. People use Facebook to keep up with friends, upload an unlimited number of photos, post links and videos, and learn more about the people they meet. ...
 
knives:N/A 還是我查錯地方了,可以再指點一下嗎5F 12/19 13:29
arrack:因為以前GMAE都亂發垃圾郵件,所以在某一次改版中6F 12/19 13:46
arrack:已經將取得好友EMAIL的功能關閉了
arrack:現只能透過發送邀請的方式了
arrack:至於登入USER的帳號 又是另外一回事...
我已經加上email這個權限

然後用下面的程式
$raw = $facebook->api('/me/friends'); //取得好友的uid

$ids = array();
foreach($raw['data'] as $k=>$v)
{

        $ids[] = $v['id'];

}

//然後用fql的方式取得
$fql = 'select name,proxied_email,email FROM user
WHERE uid in ('.implode(',',$ids).')';
$result = $facebook->api(array(
                                                'query' => $fql,
                                                'req_perms'=> 'email',
                                                'method' => 'fql.query'));

可是印出來的$result ,並沒有看到email的值

請問到底是用什麼方式可以取得阿

謝謝回答

※ 編輯: knives          來自: 59.126.209.219       (12/19 13:59)
kerash:印象中現在 perms 已經改用 scope 了,我上次才用過10F 12/19 16:37
kerash:但我沒用過 fql 這種方式,所以我不確定..
EJB:問個笨問題 user有同意授權嗎.....?12F 12/20 15:42

--
--
※ 作者: dinos  時間: 2012-05-23 11:56:56  來自: 175-181-51-65.adsl.dynamic.seed.net.tw
※ 看板: dinos 文章推薦值: 0 目前人氣: 0 累積人氣: 6176 
分享網址: 複製 已複製
guest
x)推文 r)回覆 e)編輯 d)刪除 M)收藏 ^x)轉錄 同主題: =)首篇 [)上篇 ])下篇