title: how to fetch image and display in image view from facebook
body: <pre><code>loginBtn.setUserInfoChangedCallback(new UserInfoChangedCallback() {
              @Override
              public void onUserInfoFetched(GraphUser user) {
                  if (user != null) {
                      userName.setText("Hello, " + user.getName());
  
                      Bitmap bitmap1 = getFacebookProfilePicture(user.getId());
  
                      imgview.setImageBitmap(bitmap1);
                  } else {
                      userName.setText("You are not logged");
                  }
              }
          });
  public Bitmap getFacebookProfilePicture(String userID) {
  
          try {
              URL imageURL = new URL("https://graph.facebook.com/" + userID
                      + "/picture?type=large");
              bitmap = BitmapFactory.decodeStream(imageURL.openConnection()
                      .getInputStream());
  
          } catch (MalformedURLException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          } catch (IOException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
          return bitmap;
  
      }
  </code></pre>
  
  <p>This is my code i am trying to get Profile pic  from  Facebook and display it on image-view in my app i am able to get name from Facebook but when i put code for get Profile pic then i am unable to get image in android please tell me where am doing wrong give me solution how to set this code .</p>