Android studio Facebook个人资料图片未在android studio中显示,我同时使用了glide和毕加索

Android studio Facebook个人资料图片未在android studio中显示,我同时使用了glide和毕加索,android-studio,facebook-graph-api,picasso,android-glide,Android Studio,Facebook Graph Api,Picasso,Android Glide,如您所见,我想在ImageView中显示Facebook个人资料图片,但不幸的是,图片URL不起作用 public void onCompleted(JSONObject object, GraphResponse response) { Log.d("demo",object.toString()); try {

如您所见,我想在ImageView中显示Facebook个人资料图片,但不幸的是,图片URL不起作用

                    public void onCompleted(JSONObject object, GraphResponse response) {
                        Log.d("demo",object.toString());
                        try {

                            String name = object.getString("name");
                            String id = object.getString("id");
                            tvText.setText(name);
                            String imageURL = "https://graph.facbook.com/"+ id + "/picture type=small";
                           Glide.with(MainActivity.this).load(imageURL).error(R.drawable.com_facebook_button_icon).into(tvImg);


                            } catch (JSONException e) {
                               e.printStackTrace();
                        }
                    }
                });

Bundle bundle = new Bundle();
bundle.putString("fields","name,id,first_name,last_name");
graphRequest.setParameters(bundle);
graphRequest.executeAsync();
      

您的URL字符串不正确

把这个换掉

String imageURL = "https://graph.facbook.com/"+ id + "/picture type=small";
对此

String imageURL = "https://graph.facebook.com/"+ id + "/picture type=small";

“facebook”中缺少一个“e”。

您的URL字符串不正确

把这个换掉

String imageURL = "https://graph.facbook.com/"+ id + "/picture type=small";
对此

String imageURL = "https://graph.facebook.com/"+ id + "/picture type=small";

“脸谱”上少了一个“e”。

Ohh,非常愚蠢的错误,非常感谢。Ohh,非常愚蠢的错误,非常感谢。