我使用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