[英]get friend's profile picture url or profile picture using graph api v2.3 in android
new GraphRequest(AccessToken.getCurrentAccessToken(),
"/"+userId+"/picture",
null,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
/* handle the result */ Log.e("new Response","----"+response);
}
}
).executeAsync();
}
我正在收到如下響應。
響應:
responseCode:200,graphObject:{“ FACEBOOK_NON_JSON_RESULT”:“ ... : 空值}
創建簡單的GET
請求,而不是創建executeGraphPathRequestAsync
請求。
graph.facebook.com/YOUR_USER_ID/picture
檢查以下鏈接以從遠程URL獲取圖像:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.