0

Here is the FB Graph url - https://graph.facebook.com/198403540272980/photos/?fields=name,source&limit=0

            String jsonUser = fb.request("198403540272980/photos/?fields=name,source&limit=0");
            obj = Util.parseJson(jsonUser);


            JSONArray dataArr = obj.getJSONArray("data");  



            for(int i = 0; i< dataArr.length()-1; i++)
            {
                **Need code to load image to imageview**
            }

Any help???

Ritesh
  • 27
  • 1
  • 10

1 Answers1

0

first you need the photoURLs

for (int i=0; i<dataArr.size(0; i++){
    picUrl = dataArr.getJSONObject(i).getString("source");


}

To put it in an imageview, look here

Community
  • 1
  • 1
Jasper
  • 2,389
  • 4
  • 25
  • 40
  • Actually I need clarity on how to display images whether to download them first in SD card and then show them or directly. – Ritesh Aug 03 '12 at 16:50