0
我被困在如何從這個請求響應中檢索配置文件圖片。該代碼在GraphAPI文檔中提供。Facebook Profile Pic(Facebook Android SDK)
Session session = ParseFacebookUtils.getSession();
/* make the API call */
new Request(
session,
"/me/picture",
null,
HttpMethod.GET,
new Request.Callback() {
public void onCompleted(Response response) {
/* handle the result */
}
}
).executeAsync();
我應該怎麼做才能從響應中檢索圖片?
我不完全相信你需要使用圖形API來檢索資料圖片給用戶。一旦你有用戶ID,應該可以使用url http://graph.facebook.com/123/picture,其中123是用戶ID或用戶名,以加載個人資料圖片。如果你想使用Graph API,你可能需要使用_fields_參數,例如http://graph.facebook.com/123?fields=picture。 – harism