从facebook api获取的朋友发送电子邮件问题

时间:2013-09-11 05:59:53

标签: android facebook facebook-graph-api facebook-fql facebook-android-sdk

我正在尝试使用facebook api这样的朋友发送电子邮件地址

private static final List<String> PERMISSIONS = Arrays.asList("publish_actions","read_stream", "email", "user_about_me", "friends_about_me", "friends_notes");

String fqlQuery = "SELECT uid, name, pic_square, contact_email FROM user WHERE uid IN " + "(SELECT uid2 FROM friend WHERE uid1 = me())";
Bundle params = new Bundle();
params.putString("q", fqlQuery);
Session session = Session.getActiveSession();
Request request = new Request(session, "/fql", params, HttpMethod.GET, new Request.Callback()
{
    public void onCompleted(Response response)
    {
        Log.e("log_tag", "response: "+response);
    }
});
Request.executeBatchAsync(request);

但我无法获得电子邮件的成功,但是我得到了其他价值观。有人对此有所了解吗?

我还需要获得朋友的联系电话。可能吗?还指导我。

由于

1 个答案:

答案 0 :(得分:4)

根据官方文件:

  

应用无法获取用户朋友的电子邮件地址。

有关详情:Email Permissions