我使用Facebook SDK 4.x
,我需要得到具有名好友列表,但我不能得到它, 我也实现了这个graph API
获取Facebook的好友列表与名称
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/me/friend",
null,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
/* handle the result */
}
}
).executeAsync();
,这是我reponse
response {Response: responseCode: 200, graphObject: {"summary":{"total_count":3},"data":[]}, error: null}
我没有得到名称的朋友列表,如果你有任何想法比PLZ给我。 在此先感谢。
的Facebook只返回谁已授权您的应用程序的朋友列表。所以它必须为每个朋友安装您的应用程序。 – Skynet
我可以得到朋友的名字吗? –
@MohitSuthar看看这个http://stackoverflow.com/questions/29491479/fetch-friends-list-from-facebook-sdk-4-0-1-in-android-with-graph-api-2- 2答案 – Hardy