0

我正在尝试使用这样的 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);

但我无法通过电子邮件获得成功,但我得到了其他价值。有人对此有想法吗?

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

谢谢

4

1 回答 1

4

根据官方文档:

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

有关更多详细信息:电子邮件权限

于 2013-09-11T06:48:43.213 回答