簡體   English   中英

在Android中使用圖形API v2.3獲取朋友的個人資料圖片網址或個人資料圖片

[英]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獲取圖像:

如何在Android中通過URL加載ImageView?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM