我想取下面如何通過新圖api,v2.5獲得Facebook電子郵件的朋友列表?
GraphRequest request = GraphRequest.newMyFriendsRequest(
token,
new GraphRequest.GraphJSONArrayCallback() {
@Override
public void onCompleted(JSONArray array, GraphResponse response) {
// Insert your code here
}
});
request.executeAsync();
}
響應代碼執行後返回使用的代碼好友列表是
{Response: responseCode: 200, graphObject: {"data":[],"summary":{"total_count":461}}, error: null}
Persmission到access friends
和public profile
被授予登錄時間。 我如何獲取我的朋友列表和他們的公共電子郵件/ Facebook電子郵件?