0
它是否需要任何许可,除了允许我的应用程序。我的代码如下..我可以通过javascript api从Facebook导入朋友的电子邮件地址或电话号码吗?
FB.api({方法: 'fql.query',
查询:“SELECT姓名,pic_square,生日,性别,PROFILE_URL,网站,电子邮件,email_hashes从用户
其中uid ='+ friend.id},
function(response) {
alert("friends website:: "+response[0].website);
alert("friends email :: "+response[0].email);
alert("friends email_hashes:: "+response[0].email_hashes[0]);
} });
首先警报返回适当的网站的信息,但在第二和第三警报是
给予null和undefined /空(Excep t电子邮件一切正常,但不是电子邮件
地址)。